$declaration constant

BridgeClassDef const $declaration

Compile-time bridged class declaration for $FileSystemEntity

Implementation

static const $declaration = BridgeClassDef(BridgeClassType($type),
    constructors: {
      '': BridgeConstructorDef(BridgeFunctionDef(
          returns: BridgeTypeAnnotation($type), params: [], namedParams: []))
    },
    methods: {
      'exists': BridgeMethodDef(BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef(
              CoreTypes.future, [BridgeTypeRef(CoreTypes.bool)])),
          params: [],
          namedParams: [])),
      'existsSync': BridgeMethodDef(BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool)),
          params: [],
          namedParams: [])),
      'delete': BridgeMethodDef(BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef(
              CoreTypes.future, [BridgeTypeRef(CoreTypes.voidType)])),
          params: [],
          namedParams: [
            BridgeParameter('recursive',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool)), true)
          ])),
      'deleteSync': BridgeMethodDef(BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.voidType)),
          params: [],
          namedParams: [
            BridgeParameter('recursive',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool)), true)
          ])),
      'rename': BridgeMethodDef(BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef(
              CoreTypes.future, [BridgeTypeRef(IoTypes.fileSystemEntity)])),
          params: [
            BridgeParameter('newPath', BridgeTypeAnnotation($type), false)
          ],
          namedParams: [])),
      'renameSync': BridgeMethodDef(BridgeFunctionDef(
          returns: BridgeTypeAnnotation($type),
          params: [
            BridgeParameter('newPath', BridgeTypeAnnotation($type), false)
          ],
          namedParams: [])),
    },
    getters: {
      'path': BridgeMethodDef(BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string)),
          params: [],
          namedParams: [])),
      'absolute': BridgeMethodDef(BridgeFunctionDef(
          returns: BridgeTypeAnnotation($type), params: [], namedParams: [])),
      'parent': BridgeMethodDef(BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef(IoTypes.directory)),
          params: [],
          namedParams: [])),
      'uri': BridgeMethodDef(BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.uri)),
          params: [],
          namedParams: [])),
    },
    wrap: true);