$declaration constant
BridgeClassDef
const $declaration
Compile-type class declaration for BinaryMessenger
Implementation
static const $declaration = BridgeClassDef(
BridgeClassType($type, isAbstract: true),
constructors: {},
methods: {
'send': BridgeMethodDef(BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.future)),
params: [
BridgeParameter('channel',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string)), false),
BridgeParameter(
'data',
BridgeTypeAnnotation(BridgeTypeRef(TypedDataTypes.byteData)),
false)
])),
'setMessageHandler': BridgeMethodDef(BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.voidType)),
params: [
BridgeParameter('channel',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string)), false),
BridgeParameter('handler',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.function)), true)
])),
},
wrap: true);