$bridgeGet method
$Value?
$bridgeGet(
- String identifier
)
Implementation
@override
$Value? $bridgeGet(String identifier) {
switch (identifier) {
case 'key':
final key = super.key;
return key == null ? const $null() : $Key.wrap(key);
case 'createElement':
return $Function((runtime, target, args) =>
$StatefulElement.wrap(super.createElement()));
case 'toStringShort':
return $Function(
(runtime, target, args) => $String(super.toStringShort()));
case 'debugFillProperties':
return $Function((runtime, target, args) {
super.debugFillProperties(args[1]!.$value);
return const $null();
});
case 'toString':
return $Function((runtime, target, args) => $String(super.toString()));
case 'toDiagnosticsNode':
return $Function((runtime, target, args) => $DiagnosticsNode.wrap(super
.toDiagnosticsNode(name: args[1]?.$value, style: args[2]?.$value)));
case 'debugDescribeChildren':
return $Function(((runtime, target, args) => $List.wrap(super
.debugDescribeChildren()
.map((e) => $DiagnosticsNode.wrap(e))
.toList())));
}
throw UnimplementedError('Property does not exist: "$identifier"');
}