$declaration constant
BridgeClassDef
const $declaration
Compile-time bridge declaration of $StringBuffer
Implementation
static const $declaration = BridgeClassDef(
BridgeClassType(BridgeTypeRef(CoreTypes.stringBuffer),
isAbstract: false, $implements: [BridgeTypeRef(IoTypes.stringSink)]),
constructors: {
'': BridgeConstructorDef(BridgeFunctionDef(
returns:
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.stringBuffer)),
params: [
BridgeParameter('content',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string)), true),
],
namedParams: []))
},
methods: {
'write': BridgeMethodDef(BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.voidType)),
params: [
BridgeParameter(
'object',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.object),
nullable: true),
false),
],
namedParams: [])),
'writeAll': BridgeMethodDef(BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.voidType)),
params: [
BridgeParameter(
'objects',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.iterable)),
false),
BridgeParameter(
'separator',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string),
nullable: true),
true),
],
namedParams: [])),
'writeln': BridgeMethodDef(BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.voidType)),
params: [
BridgeParameter(
'object',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.object),
nullable: true),
true),
],
namedParams: [])),
'writeCharCode': BridgeMethodDef(BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.voidType)),
params: [
BridgeParameter('charCode',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int)), false),
],
namedParams: [])),
'clear': BridgeMethodDef(BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.voidType)),
params: [])),
},
getters: {
'length': BridgeMethodDef(BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int)),
params: [])),
'isEmpty': BridgeMethodDef(BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool)),
params: [])),
'isNotEmpty': BridgeMethodDef(BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool)),
params: [])),
},
wrap: true);