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