server_client_comm 0.1.7

  • Installing
  • Versions
  • 22

This package lets you communicate between the server and client, all you need to do is SocketMessage.shrinkT(x,[y]) to turn x into json and make y it's type and SocketMessage.expandT(x) to turn the json string x into an object.

this package uses dson.


did stuff i guess


  • changed expandTransform to SocketMessage.expandT (static)
  • changed shrinkTransform to SocketMessage.shrinkT (static)

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  server_client_comm: "^0.1.7"

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

      import 'package:server_client_comm/server_client_comm.dart';
Version Uploaded Documentation Archive
0.1.7 Oct 15, 2017 Go to the documentation of server_client_comm 0.1.7 Download server_client_comm 0.1.7 archive
0.1.6 Sep 30, 2017 Go to the documentation of server_client_comm 0.1.6 Download server_client_comm 0.1.6 archive
0.1.5 Sep 17, 2017 Go to the documentation of server_client_comm 0.1.5 Download server_client_comm 0.1.5 archive
0.1.1 Jul 23, 2017 Go to the documentation of server_client_comm 0.1.1 Download server_client_comm 0.1.1 archive
0.1.0 Jul 23, 2017 Go to the documentation of server_client_comm 0.1.0 Download server_client_comm 0.1.0 archive


We analyzed this package on Jun 19, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.63.0
  • pana: 0.11.3


Describes how popular the package is relative to other packages. [more]
0 / 100
Code health derived from static analysis. [more]
19 / 100
Reflects how tidy and up-to-date the package is. [more]
83 / 100
Overall score:
Weighted score of the above. [more]
Learn more about scoring.


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:server_client_comm/server_client_comm.dart.


  • Homepage is not helpful.

    Update the homepage property: create a website about the package or use the source repository URL.

  • Use constrained dependencies.

    The pubspec.yaml contains 1 dependency without version constraints. Specify version ranges for the following dependencies: dson.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 4 errors 7 hints.

    Strong-mode analysis of lib/src/sccomm.dart failed with the following error:

    line: 61 col: 45
    The method tear-off 'expandT' has type '(String) → dynamic' that isn't of expected type '(dynamic) → dynamic'. This means its parameter or return type does not match what is expected.

    Run dartfmt to format lib/server_client_comm.dart.

    Similar analysis of the following files failed:

    • lib/src/typesOfSame.dart (hint)
  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • The description is too long.

    Search engines will display only the first part of the description. Try to keep it under 180 characters.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use server_client_comm.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <3.0.0
dson 0.13.2
Transitive dependencies
analyzer 0.31.1 0.32.1
args 1.4.3
async 2.0.7
build 0.12.6
built_mirrors_core 0.8.4
charcode 1.1.1
cli_util 0.1.3
collection 1.14.10
convert 2.0.1
crypto 2.0.5
csslib 0.14.4
dart_style 1.0.9+1 1.1.0
dson_core 0.13.3
front_end 0.1.0-alpha.9 0.1.1
glob 1.1.5
html 0.13.3+1
isolate 1.1.0 2.0.1
kernel 0.3.0-alpha.9 0.3.1
logging 0.11.3+1
meta 1.1.5
package_config 1.0.3
path 1.6.1
plugin 0.2.0+2
serializable_core 0.9.2
source_gen 0.8.2
source_span 1.4.0
string_scanner 1.0.2
typed_data 1.1.5
utf 0.9.0+4
watcher 0.9.7+8
yaml 2.1.14