$declaration constant

BridgeClassDef const $declaration

Implementation

static const $declaration = BridgeClassDef(
  BridgeClassType(
    $type,
    $extends: null,
    $implements: [],
    isAbstract: true,
  ),
  constructors: {
    '': BridgeConstructorDef(
      BridgeFunctionDef(
        returns: BridgeTypeAnnotation($type),
        params: [
          BridgeParameter(
              'address',
              BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string, []),
                  nullable: false),
              false)
        ],
        namedParams: [
          BridgeParameter(
              'type',
              BridgeTypeAnnotation(
                  BridgeTypeRef(IoTypes.internetAddressType, []),
                  nullable: true),
              true)
        ],
      ),
      isFactory: true,
    ),
    'fromRawAddress': BridgeConstructorDef(
      BridgeFunctionDef(
        returns: BridgeTypeAnnotation($type),
        params: [
          BridgeParameter(
              'rawAddress',
              BridgeTypeAnnotation(
                  BridgeTypeRef(TypedDataTypes.uint8List, []),
                  nullable: false),
              false)
        ],
        namedParams: [
          BridgeParameter(
              'type',
              BridgeTypeAnnotation(
                  BridgeTypeRef(IoTypes.internetAddressType, []),
                  nullable: true),
              true)
        ],
      ),
      isFactory: true,
    )
  },
  fields: {},
  methods: {
    'lookup': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(
              BridgeTypeRef(CoreTypes.future, [
                BridgeTypeRef(CoreTypes.list, [
                  BridgeTypeRef(IoTypes.internetAddress, []),
                ]),
              ]),
              nullable: false),
          params: [
            BridgeParameter(
                'host',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string, []),
                    nullable: false),
                false)
          ],
          namedParams: [
            BridgeParameter(
                'type',
                BridgeTypeAnnotation(
                    BridgeTypeRef(IoTypes.internetAddressType, []),
                    nullable: false),
                true)
          ],
        ),
        isStatic: true),
    'tryParse': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(
              BridgeTypeRef(IoTypes.internetAddress, []),
              nullable: true),
          params: [
            BridgeParameter(
                'address',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string, []),
                    nullable: false),
                false)
          ],
          namedParams: [],
        ),
        isStatic: true),
    'reverse': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(
              BridgeTypeRef(CoreTypes.future, [
                BridgeTypeRef(IoTypes.internetAddress, []),
              ]),
              nullable: false),
          params: [],
          namedParams: [],
        ),
        isStatic: false),
  },
  getters: {
    'loopbackIPv4': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(
              BridgeTypeRef(IoTypes.internetAddress, []),
              nullable: false),
          params: [],
          namedParams: [],
        ),
        isStatic: false),
    'loopbackIPv6': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(
              BridgeTypeRef(IoTypes.internetAddress, []),
              nullable: false),
          params: [],
          namedParams: [],
        ),
        isStatic: false),
    'anyIPv4': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(
              BridgeTypeRef(IoTypes.internetAddress, []),
              nullable: false),
          params: [],
          namedParams: [],
        ),
        isStatic: false),
    'anyIPv6': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(
              BridgeTypeRef(IoTypes.internetAddress, []),
              nullable: false),
          params: [],
          namedParams: [],
        ),
        isStatic: false),
    'type': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(
              BridgeTypeRef(IoTypes.internetAddressType, []),
              nullable: false),
          params: [],
          namedParams: [],
        ),
        isStatic: false),
    'address': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string, []),
              nullable: false),
          params: [],
          namedParams: [],
        ),
        isStatic: false),
    'host': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string, []),
              nullable: false),
          params: [],
          namedParams: [],
        ),
        isStatic: false),
    'rawAddress': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(
              BridgeTypeRef(TypedDataTypes.uint8List, []),
              nullable: false),
          params: [],
          namedParams: [],
        ),
        isStatic: false),
    'isLoopback': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool, []),
              nullable: false),
          params: [],
          namedParams: [],
        ),
        isStatic: false),
    'isLinkLocal': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool, []),
              nullable: false),
          params: [],
          namedParams: [],
        ),
        isStatic: false),
    'isMulticast': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool, []),
              nullable: false),
          params: [],
          namedParams: [],
        ),
        isStatic: false),
  },
  setters: {},
  bridge: false,
  wrap: true,
);