$declaration constant

BridgeClassDef const $declaration

Compile-time bridge class declaration for $LinkedHashMap

Implementation

static const $declaration = BridgeClassDef(
    BridgeClassType($type, isAbstract: true, generics: {
      'K': BridgeGenericParam(),
      'V': BridgeGenericParam(),
    }, $implements: [
      BridgeTypeRef(
          CoreTypes.map, [BridgeTypeRef.ref('K'), BridgeTypeRef.ref('V')])
    ]),
    constructors: {
      '': BridgeConstructorDef(
          BridgeFunctionDef(
              returns: BridgeTypeAnnotation(
                  BridgeTypeRef(CollectionTypes.linkedHashMap)),
              namedParams: [
                BridgeParameter(
                    'equals',
                    BridgeTypeAnnotation(
                        BridgeTypeRef.genericFunction(
                          BridgeFunctionDef(
                              returns: BridgeTypeAnnotation(
                                  BridgeTypeRef(CoreTypes.bool)),
                              params: [
                                BridgeParameter(
                                    'a',
                                    BridgeTypeAnnotation(
                                        BridgeTypeRef.ref('K')),
                                    false),
                                BridgeParameter(
                                    'b',
                                    BridgeTypeAnnotation(
                                        BridgeTypeRef.ref('K')),
                                    false),
                              ]),
                        ),
                        nullable: true),
                    true),
                BridgeParameter(
                    'hashCode',
                    BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.function)),
                    true),
                BridgeParameter(
                    'isValidKey',
                    BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.function)),
                    true),
              ]),
          isFactory: true),
      'identity': BridgeConstructorDef(
          BridgeFunctionDef(
            returns: BridgeTypeAnnotation(
                BridgeTypeRef(CollectionTypes.linkedHashMap)),
          ),
          isFactory: true),
      'from': BridgeConstructorDef(
          BridgeFunctionDef(
            returns: BridgeTypeAnnotation(
                BridgeTypeRef(CollectionTypes.linkedHashMap)),
            params: [
              BridgeParameter('other',
                  BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.map)), false)
            ],
          ),
          isFactory: true),
      'of': BridgeConstructorDef(
          BridgeFunctionDef(
            returns: BridgeTypeAnnotation(
                BridgeTypeRef(CollectionTypes.linkedHashMap)),
            params: [
              BridgeParameter('other',
                  BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.map)), false)
            ],
          ),
          isFactory: true),
      'fromIterable': BridgeConstructorDef(
          BridgeFunctionDef(
              returns: BridgeTypeAnnotation(
                  BridgeTypeRef(CollectionTypes.linkedHashMap)),
              params: [
                BridgeParameter(
                    'iterable',
                    BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.iterable)),
                    false)
              ],
              namedParams: [
                BridgeParameter(
                    'key',
                    BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.function)),
                    true),
                BridgeParameter(
                    'value',
                    BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.function)),
                    true),
              ]),
          isFactory: true),
      'fromIterables': BridgeConstructorDef(
          BridgeFunctionDef(
              returns: BridgeTypeAnnotation(
                  BridgeTypeRef(CollectionTypes.linkedHashMap)),
              params: [
                BridgeParameter(
                    'keys',
                    BridgeTypeAnnotation(
                        BridgeTypeRef(CoreTypes.iterable, [])),
                    false),
                BridgeParameter(
                    'values',
                    BridgeTypeAnnotation(BridgeTypeRef(
                        CoreTypes.iterable, [BridgeTypeRef.ref('V')])),
                    false)
              ]),
          isFactory: true),
    },
    methods: {},
    getters: {},
    wrap: true);