$bridgeGet method
$Value?
$bridgeGet(
- String identifier
)
Implementation
@override
$Value? $bridgeGet(String identifier) {
switch (identifier) {
case 'setState':
return $Function((runtime, target, args) {
super.setState(() {
(args[0]! as EvalCallable)(runtime, target, []);
});
return null;
});
case 'initState':
return $Function((runtime, target, args) {
super.initState();
return null;
});
case 'dispose':
return $Function((runtime, target, args) {
super.dispose();
return null;
});
case 'widget':
if (super.widget is $Instance) {
return super.widget as $Instance;
}
return $Widget.wrap(super.widget);
}
throw UnimplementedError('Unknown property "$identifier"');
}