$declaration constant
BridgeClassDef
const $declaration
dart_eval compile-time class declaration for $Image
Implementation
static const $declaration = BridgeClassDef(
BridgeClassType($type, isAbstract: false, $extends: $Widget.$type),
constructors: {
'': BridgeConstructorDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation($type),
namedParams: [
BridgeParameter(
'image', BridgeTypeAnnotation($ImageProvider.$type), false),
BridgeParameter('key', BridgeTypeAnnotation($Key.$type), true),
BridgeParameter('width',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.double)), true),
BridgeParameter('height',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.double)), true),
BridgeParameter('color', BridgeTypeAnnotation($Color.$type), true),
BridgeParameter('fit', BridgeTypeAnnotation($BoxFit.$type), true),
BridgeParameter('alignment',
BridgeTypeAnnotation($AlignmentGeometry.$type), true),
BridgeParameter(
'filterQuality',
BridgeTypeAnnotation($FilterQuality.$type),
true,
),
],
),
),
'network': BridgeConstructorDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation($type),
params: [
BridgeParameter('src',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string)), false),
],
namedParams: [
BridgeParameter('key', BridgeTypeAnnotation($Key.$type), true),
BridgeParameter('scale',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.double)), true),
BridgeParameter('width',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.double)), true),
BridgeParameter('height',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.double)), true),
BridgeParameter('color', BridgeTypeAnnotation($Color.$type), true),
BridgeParameter('fit', BridgeTypeAnnotation($BoxFit.$type), true),
BridgeParameter('alignment',
BridgeTypeAnnotation($AlignmentGeometry.$type), true),
BridgeParameter(
'filterQuality',
BridgeTypeAnnotation($FilterQuality.$type),
true,
),
],
),
),
'asset': BridgeConstructorDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation($type),
params: [
BridgeParameter('name',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string)), false),
],
namedParams: [
BridgeParameter('key', BridgeTypeAnnotation($Key.$type), true),
BridgeParameter('scale',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.double)), true),
BridgeParameter('width',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.double)), true),
BridgeParameter('height',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.double)), true),
BridgeParameter('color', BridgeTypeAnnotation($Color.$type), true),
BridgeParameter('fit', BridgeTypeAnnotation($BoxFit.$type), true),
BridgeParameter('alignment',
BridgeTypeAnnotation($AlignmentGeometry.$type), true),
BridgeParameter(
'filterQuality',
BridgeTypeAnnotation($FilterQuality.$type),
true,
),
],
),
),
},
wrap: true,
);