AS
Size: a a a
AS
🅵
🅵
🅵
PK
🅵
ИК
🅵
🅵
AS
🅵
🅵
AS
🅵
import 'package:flutter/widgets.dart';
@immutable
class $NAME$ extends StatefulWidget {
final Widget child;
const $NAME$({@required this.child, Key key}) :
: assert(child != null, 'Field child in widget $NAME$ must not be null')
, super(key: key);
static $NAME$State of(BuildContext context) =>
_$NAME$Scope.of(context).state;
@override
State<$NAME$> createState() => $NAME$State();
}
class $NAME$State extends State<$NAME$> {
@override
void initState() {
super.initState();
// ...
}
@override
void dispose() {
// ...
super.dispose();
}
@override
Widget build(BuildContext context) =>
_$NAME$Scope(
state: this,
child: widget.child,
);
}
@immutable
class _$NAME$Scope extends InheritedWidget {
final $NAME$State state;
const _$NAME$Scope({
@required Widget child,
@required this.state,
Key key,
})
: assert(child != null, 'Field child in widget _$NAME$Scope must not be null')
, assert(state is $NAME$State, '$NAME$State must not be null')
, super(key: key, child: child);
/// Find GlobalContext in BuildContext
static _$NAME$Scope of(BuildContext context) =>
context.dependOnInheritedWidgetOfExactType<_$NAME$Scope>();
@override
bool updateShouldNotify(_$NAME$Scope oldWidget) =>
state != oldWidget.state;
}
PK
PK
🅵
MyScreen.of(context).controller.stream
за O(N)
AS
PK