$declaration constant
BridgeClassDef
const $declaration
Compile-time bridged class declaration for $Directory
Implementation
static const $declaration = BridgeClassDef(
BridgeClassType($type, $extends: $FileSystemEntity.$type),
constructors: {
'': BridgeConstructorDef(BridgeFunctionDef(
returns: BridgeTypeAnnotation($type), params: [], namedParams: []))
},
methods: {
'create': BridgeMethodDef(BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(
CoreTypes.future, [BridgeTypeRef(CoreTypes.voidType)])),
params: [],
namedParams: [
BridgeParameter('recursive',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool)), true),
])),
'createSync': BridgeMethodDef(BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.voidType)),
params: [],
namedParams: [
BridgeParameter('recursive',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool)), true),
])),
'rename': BridgeMethodDef(BridgeFunctionDef(
returns:
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.future, [$type])),
params: [
BridgeParameter('newPath',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string)), false)
],
namedParams: [])),
'renameSync': BridgeMethodDef(
BridgeFunctionDef(returns: BridgeTypeAnnotation($type), params: [
BridgeParameter('newPath',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string)), false)
], namedParams: [])),
'list': BridgeMethodDef(BridgeFunctionDef(
returns: BridgeTypeAnnotation(
BridgeTypeRef(
CoreTypes.stream, [BridgeTypeRef(IoTypes.fileSystemEntity)]),
),
namedParams: [
BridgeParameter('recursive',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool)), true),
BridgeParameter('followLinks',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool)), true),
])),
'listSync': BridgeMethodDef(BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(
CoreTypes.list, [BridgeTypeRef(IoTypes.fileSystemEntity)])),
namedParams: [
BridgeParameter('recursive',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool)), true),
BridgeParameter('followLinks',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool)), true),
])),
},
wrap: true);