mirror of
https://github.com/flutter/samples.git
synced 2025-11-09 14:28:51 +00:00
Deps update, utilize super.key (#1265)
* Deps update, utilize `super.key` * `flutter format`
This commit is contained in:
@@ -36,10 +36,10 @@ class BookstoreAuth extends ChangeNotifier {
|
||||
|
||||
class BookstoreAuthScope extends InheritedNotifier<BookstoreAuth> {
|
||||
const BookstoreAuthScope({
|
||||
required BookstoreAuth notifier,
|
||||
required Widget child,
|
||||
Key? key,
|
||||
}) : super(key: key, notifier: notifier, child: child);
|
||||
required super.notifier,
|
||||
required super.child,
|
||||
super.key,
|
||||
});
|
||||
|
||||
static BookstoreAuth of(BuildContext context) => context
|
||||
.dependOnInheritedWidgetOfExactType<BookstoreAuthScope>()!
|
||||
|
||||
Reference in New Issue
Block a user