diff --git a/packages/container/angel_container/lib/src/container.dart b/packages/container/angel_container/lib/src/container.dart index d44932c4..5fb963a5 100644 --- a/packages/container/angel_container/lib/src/container.dart +++ b/packages/container/angel_container/lib/src/container.dart @@ -217,7 +217,7 @@ class Container { if (_namedSingletons.containsKey(name)) { return _namedSingletons[name] as T; } else if (_parent != null) { - return _parent!.findByName(name); + return _parent.findByName(name); } else { throw StateError( 'This container does not have a singleton named "$name".'); diff --git a/packages/route/lib/src/route.dart b/packages/route/lib/src/route.dart index 08c99bc4..85baded6 100644 --- a/packages/route/lib/src/route.dart +++ b/packages/route/lib/src/route.dart @@ -61,7 +61,7 @@ class Route { var i = 0; if (_routeDefinition != null) { - for (var seg in _routeDefinition!.segments) { + for (var seg in _routeDefinition.segments) { if (i++ > 0) b.write('/'); if (seg is ConstantSegment) { b.write(seg.text); diff --git a/packages/user_agent/angel_user_agent/example/example.dart b/packages/user_agent/angel_user_agent/example/example.dart index efadec2c..cf28d5f8 100644 --- a/packages/user_agent/angel_user_agent/example/example.dart +++ b/packages/user_agent/angel_user_agent/example/example.dart @@ -6,6 +6,7 @@ import 'package:angel3_framework/http.dart'; void main() async { var app = Angel(); + // ignore: unused_local_variable var http = AngelHttp(app); //TODO: To be reviewed