profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/kevmoo/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Kevin Moore kevmoo @dart-lang @flutter @google Seattle, WA, USA https://j832.com A Product Manager at @google working on @dart-lang and @flutter web technologies and our package ecosystem.

google/json_serializable.dart 967

Generates utilities to aid in serializing to/from JSON.

brianegan/scoped_model 742

A Widget that passes a Reactive Model to all of it's children

google/built_value.dart 700

Immutable value types, enum classes, and serialization.

FirebaseExtended/firebase-dart 372

Dart wrapper for Firebase

GoogleCloudPlatform/functions-framework-dart 290

FaaS (Function as a service) framework for writing portable Dart functions

google/built_collection.dart 212

Immutable Dart collections via the builder pattern.

google/vector_math.dart 198

A vector math package for 2D and 3D applications

brendan-duncan/archive 191

Dart library to encode and decode various archive and compression formats, such as Zip, Tar, GZip, ZLib, and BZip2.

google/chartjs.dart 114

Dart API for Chart.js

google/tuple.dart 111

A library providing a tuple data structure

pull request commentdart-lang/shelf

change Request.hijack to have the Never return type

Just ready to publish now?

Not until we are 100% sure it's landed internally.

jakemac53

comment created time in 2 hours

PR opened dart-lang/shelf

Reviewers
change Request.hijack to have the Never return type

Fixes https://github.com/dart-lang/shelf/issues/166

The plan will be to update shelf_web_socket and sse as well before doing any releases. Once we land all those changes successfully internally then I will circle back and publish them externally.

+8 -2

0 comment

3 changed files

pr created time in 3 hours

create barnchdart-lang/shelf

branch : hijack-never-return-type

created branch time in 3 hours

created tagdart-lang/shelf_static

tag1.0.0

A static file handler for the Dart Shelf server model

created time in 6 hours

delete branch dart-lang/shelf_static

delete branch : release

delete time in 6 hours

push eventdart-lang/shelf_static

Jacob MacDonald

commit sha fa30419055279a00c9e428439b1abe362d18f25d

stable null safety release (#49)

view details

push time in 6 hours

PR merged dart-lang/shelf_static

Reviewers
stable null safety release cla: yes
+2 -2

0 comment

2 changed files

jakemac53

pr closed time in 6 hours

PR opened dart-lang/shelf_static

Reviewers
stable null safety release
+2 -2

0 comment

2 changed files

pr created time in 6 hours

create barnchdart-lang/shelf_static

branch : release

created branch time in 6 hours

issue commentdart-lang/shelf

Request.hijack should have a return type of Never

I will circle back to this after getting the null safety releases out the door for shelf_static, shelf_web_socket, and shelf_packages_handler.

jakemac53

comment created time in 6 hours

issue commentdart-lang/shelf

Request.hijack should have a return type of Never

I checked on the effect of this change internally, and it does cause a small amount of breakage but it is manageable. The only affected packages are two, third_party packages - package:sse and package:shelf_web_socket.

This is not a breaking change for these packages externally, as it only results in an analyzer info message about dead code.

jakemac53

comment created time in 8 hours

fork domesticmouse/flutter-task-planner-app

A beautiful task planner app design made in flutter.

fork in 20 hours

issue commentgoogle/json_serializable.dart

type '_InternalLinkedHashMap<dynamic, dynamic>' is not a subtype of type 'Map<String, dynamic>' in type cast

I'm going to consider this resolved, thanks for the reply.

HerrNiklasRaab

comment created time in a day

startedkevmoo/qr.dart

started time in a day

startedawslabs/cdk8s

started time in a day

issue openeddart-lang/shelf

Request.hijack should have a return type of Never

This function always throws, adding a return type of Never makes it easier to use this method in functions that return non-nullable values, they otherwise have to put an unreachable throw after calling this method. See https://github.com/dart-lang/shelf_web_socket/pull/31/files/51edc9f50543a5ed463a249d4da71b926779323a#diff-9a79b3ae255d1d23c7c86b78ff48b6f8cc1184d203d9a68a02f0b036751c4e91R88/ as an example.

created time in a day

pull request commentdart-lang/shelf_static

Migrate to null safety

I am merging this internally as an extra check and once that succeeds I will push a PR to release it

xvrh

comment created time in a day

push eventdart-lang/shelf_static

Xavier H

commit sha bafde9eaddb5d02040a614e41deddd971b4d67e6

Migrate to null safety (#47) Fixes #41

view details

push time in a day

PR merged dart-lang/shelf_static

Migrate to null safety cla: yes

Fixes #41

+46 -63

4 comments

7 changed files

xvrh

pr closed time in a day

issue closeddart-lang/shelf_static

Migrating to null safety

I was wondering if there are any plans to migrate this package to null safety?

I would be happy to have an attempt at null safety migration if there are not.

closed time in a day

tnc1997

pull request commentdart-lang/shelf_static

Migrate to null safety

I did this as well without realizing this PR was out heh, but I just pushed up my additional changes which were just to update the changelog and pubspec.

xvrh

comment created time in a day

create barnchdart-lang/shelf_static

branch : null-safety

created branch time in a day

issue commentgoogle/json_serializable.dart

type '_InternalLinkedHashMap<dynamic, dynamic>' is not a subtype of type 'Map<String, dynamic>' in type cast

I was able to get it to work with a combination of things

any_map: true

FBList.fromJson(Map.from(listPayload))

and

factory FBList.fromJson(Map<String, dynamic> json) => _$FBListFromJson(json);

But I am still curious to hear your thoughts about the solution above.

HerrNiklasRaab

comment created time in a day

issue commentgoogle/json_serializable.dart

type '_InternalLinkedHashMap<dynamic, dynamic>' is not a subtype of type 'Map<String, dynamic>' in type cast

If I edit the json_serliazble code to change e as Map<String,dynamic> to Map<String,dynamic>.from(e) it works as expected

_$_FBList _$_$_FBListFromJson(Map<String, dynamic> json) {
  return _$_FBList(
    info: json['info'] == null
        ? null
        : FBListInfo.fromJson(json['info'] as Map<String, dynamic>),
    members: (json['members'] as Map<String, dynamic>)?.map(
      (k, e) => MapEntry(
          k,
          e == null
              ? null
              : FBListMember.fromJson(Map<String, dynamic>.from(e))),
    ),
    items: (json['items'] as Map<String, dynamic>)?.map(
      (k, e) => MapEntry(k,
          e == null ? null : FBListItem.fromJson(Map<String, dynamic>.from(e))),
    ),
  );
}
_$_FBList _$_$_FBListFromJson(Map<String, dynamic> json) {
  return _$_FBList(
    info: json['info'] == null
        ? null
        : FBListInfo.fromJson(json['info'] as Map<String, dynamic>),
    members: (json['members'] as Map<String, dynamic>)?.map(
      (k, e) => MapEntry(k,
          e == null ? null : FBListMember.fromJson(e as Map<String, dynamic>)),
    ),
    items: (json['items'] as Map<String, dynamic>)?.map(
      (k, e) => MapEntry(
          k, e == null ? null : FBListItem.fromJson(e as Map<String, dynamic>)),
    ),
  );
}
HerrNiklasRaab

comment created time in a day

issue commentgoogle/json_serializable.dart

type '_InternalLinkedHashMap<dynamic, dynamic>' is not a subtype of type 'Map<String, dynamic>' in type cast

Also, it looks like they fixed Firestore and not Realtime Database.

HerrNiklasRaab

comment created time in a day

issue commentgoogle/json_serializable.dart

type '_InternalLinkedHashMap<dynamic, dynamic>' is not a subtype of type 'Map<String, dynamic>' in type cast

Just for the sake of my understanding, is there any reason why json_serializeable can't do a Map<String,dynamic>.from() when it's expecting a map? Would that resolve the issue?

HerrNiklasRaab

comment created time in a day

issue commentgoogle/json_serializable.dart

type '_InternalLinkedHashMap<dynamic, dynamic>' is not a subtype of type 'Map<String, dynamic>' in type cast

This problem is still apparent and it's very annoying. If you try to unwrap any maps from Realtime Database it falls apart.

HerrNiklasRaab

comment created time in 2 days

fork mjmarrazzo/git

A dart wrapper around the git command line binary

https://pub.dev/packages/git

fork in 2 days

issue commentgoogle/json_serializable.dart

Doesn't convert nested objects in 4.0.0-nullsafety.0

Thanks I got the point. Please provide a clear practical example in documentation.

haashem

comment created time in 2 days