ScopeRegistrant constructor

ScopeRegistrant({
  1. required Widget child,
  2. List<Scope>? scopes,
  3. Key? key,
})

Implementation

ScopeRegistrant({
  required Widget child,
  List<Scope>? scopes,
  Key? key,
}) : super(child: child, key: key) {
  scopes?.forEach((Scope scope) {
    map[scope.runtimeType] = scope;
  });
}