server_client_comm 0.1.7

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 pub get

Alternatively, your editor might support pub get or flutter pub 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';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Feb 13, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.5

Health issues and suggestions

Fix lib/src/sccomm.dart. (-90.29 points)

Analysis of lib/src/sccomm.dart failed with 8 errors, 6 hints, including:

line 49 col 33: Undefined name 'JSON'.

line 53 col 19: Undefined name 'JSON'.

line 58 col 20: Undefined name 'JSON'.

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

line 64 col 44: The method tear-off 'expandT' has type 'dynamic Function(String)' that isn't of expected type 'dynamic Function(dynamic)'. This means its parameter or return type doesn't match what is expected.

Format lib/server_client_comm.dart.

Run dartfmt to format lib/server_client_comm.dart.

Format lib/src/typesOfSame.dart.

Run dartfmt to format lib/src/typesOfSame.dart.

Maintenance issues and suggestions

Package is too old. (-100 points)

The package was last published more than two years ago.

Use constrained dependencies. (-20 points)

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

Homepage URL isn't helpful. (-10 points)

Update the homepage field from pubspec.yaml: link to a website about the package or use the source repository URL.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and server_client_comm.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.

The description is too long. (-10 points)

Search engines display only the first part of the description. Try to keep the value of the description field in your package's pubspec.yaml file between 60 and 180 characters.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <3.0.0
dson any 0.16.0
Transitive dependencies
_fe_analyzer_shared 1.0.3
analyzer 0.39.4
args 1.5.2
async 2.4.0
build 1.2.2
built_mirrors 0.11.0
charcode 1.1.3
collection 1.14.12
convert 2.1.1
crypto 2.1.4
csslib 0.16.1
dart_style 1.3.3
glob 1.2.0
html 0.14.0+3
js 0.6.1+1
logging 0.11.4
meta 1.1.8
node_interop 1.0.3
node_io 1.0.1+2
package_config 1.1.0 2.0.0
path 1.6.4
pedantic 1.9.0
pub_semver 1.4.3
serializable 0.12.0
source_gen 0.9.4+7
source_span 1.6.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
watcher 0.9.7+13
yaml 2.2.0