default args

This commit is contained in:
Tobe O 2018-11-08 11:54:14 -05:00
parent 34224504e2
commit feb489949a
3 changed files with 11 additions and 6 deletions

View file

@ -1,3 +1,9 @@
# 1.0.0-alpha.12
* `StaticReflector` now defaults to empty arguments.
# 1.0.0-alpha.11
* Added `StaticReflector`.
# 1.0.0-alpha.10
* Added `Container.registerLazySingleton<T>`.
* Added named singleton support.

View file

@ -1,5 +1,4 @@
import 'package:angel_container/angel_container.dart';
import 'package:meta/meta.dart';
/// A [Reflector] implementation that performs simple [Map] lookups.
///
@ -11,10 +10,10 @@ class StaticReflector implements Reflector {
final Map<Object, ReflectedInstance> instances;
const StaticReflector(
{@required this.names,
@required this.types,
@required this.functions,
@required this.instances});
{this.names: const {},
this.types: const {},
this.functions: const {},
this.instances: const {}});
@override
String getName(Symbol symbol) {

View file

@ -1,5 +1,5 @@
name: angel_container
version: 1.0.0-alpha.11
version: 1.0.0-alpha.12
author: Tobe O <thosakwe@gmail.com>
description: "A better IoC container and dependency injector for Angel, ultimately allowing Angel to be used without dart:mirrors."
homepage: https://github.com/angel-dart/container.git