$declaration constant

BridgeClassDef const $declaration

Implementation

static const $declaration = BridgeClassDef(
  BridgeClassType(
    $type,
    generics: {'E': BridgeGenericParam()},
  ),
  constructors: {
    '': BridgeConstructorDef(
      BridgeFunctionDef(
        returns: BridgeTypeAnnotation($type),
        params: [],
        namedParams: [],
      ),
      isFactory: false,
    ),
    'generate': BridgeConstructorDef(
      BridgeFunctionDef(
        returns: BridgeTypeAnnotation($type),
        params: [
          BridgeParameter(
              'count',
              BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
                  nullable: false),
              false),
          BridgeParameter(
              'generator',
              BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.function, []),
                  nullable: true),
              true)
        ],
        namedParams: [],
        generics: {'E': BridgeGenericParam()},
      ),
      isFactory: true,
    ),
    'empty': BridgeConstructorDef(
      BridgeFunctionDef(
          returns: BridgeTypeAnnotation($type),
          params: [],
          namedParams: [],
          generics: {'E': BridgeGenericParam()}),
      isFactory: true,
    )
  },
  fields: {},
  methods: {
    'castFrom': BridgeMethodDef(
        BridgeFunctionDef(
            returns: BridgeTypeAnnotation(
                BridgeTypeRef(CoreTypes.iterable, [
                  BridgeTypeRef.ref('T', []),
                ]),
                nullable: false),
            params: [
              BridgeParameter(
                  'source',
                  BridgeTypeAnnotation(
                      BridgeTypeRef(CoreTypes.iterable, [
                        BridgeTypeRef.ref('S', []),
                      ]),
                      nullable: false),
                  false)
            ],
            namedParams: [],
            generics: {
              'S': BridgeGenericParam(),
              'T': BridgeGenericParam(),
            }),
        isStatic: true),
    'iterableToShortString': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string, []),
              nullable: false),
          params: [
            BridgeParameter(
                'iterable',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.iterable, []),
                    nullable: false),
                false),
            BridgeParameter(
                'leftDelimiter',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string, []),
                    nullable: false),
                true),
            BridgeParameter(
                'rightDelimiter',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string, []),
                    nullable: false),
                true)
          ],
          namedParams: [],
        ),
        isStatic: true),
    'iterableToFullString': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string, []),
              nullable: false),
          params: [
            BridgeParameter(
                'iterable',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.iterable, []),
                    nullable: false),
                false),
            BridgeParameter(
                'leftDelimiter',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string, []),
                    nullable: false),
                true),
            BridgeParameter(
                'rightDelimiter',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string, []),
                    nullable: false),
                true)
          ],
          namedParams: [],
        ),
        isStatic: true),
    'cast': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(
              BridgeTypeRef(CoreTypes.iterable, [
                BridgeTypeRef.ref('R', []),
              ]),
              nullable: false),
          params: [],
          namedParams: [],
          generics: {'R': BridgeGenericParam()},
        ),
        isStatic: false),
    'followedBy': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(
              BridgeTypeRef(CoreTypes.iterable, [
                BridgeTypeRef.ref('E', []),
              ]),
              nullable: false),
          params: [
            BridgeParameter(
                'other',
                BridgeTypeAnnotation(
                    BridgeTypeRef(CoreTypes.iterable, [
                      BridgeTypeRef.ref('E', []),
                    ]),
                    nullable: false),
                false)
          ],
          namedParams: [],
        ),
        isStatic: false),
    'map': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(
              BridgeTypeRef(CoreTypes.iterable, [
                BridgeTypeRef.ref('T', []),
              ]),
              nullable: false),
          params: [
            BridgeParameter(
                'toElement',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.function, []),
                    nullable: false),
                false)
          ],
          namedParams: [],
          generics: {'T': BridgeGenericParam()},
        ),
        isStatic: false),
    'where': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(
              BridgeTypeRef(CoreTypes.iterable, [
                BridgeTypeRef.ref('E', []),
              ]),
              nullable: false),
          params: [
            BridgeParameter(
                'test',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.function, []),
                    nullable: false),
                false)
          ],
          namedParams: [],
        ),
        isStatic: false),
    'whereType': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(
              BridgeTypeRef(CoreTypes.iterable, [
                BridgeTypeRef.ref('T', []),
              ]),
              nullable: false),
          params: [],
          namedParams: [],
          generics: {'T': BridgeGenericParam()},
        ),
        isStatic: false),
    'expand': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(
              BridgeTypeRef(CoreTypes.iterable, [
                BridgeTypeRef.ref('T', []),
              ]),
              nullable: false),
          params: [
            BridgeParameter(
                'toElements',
                BridgeTypeAnnotation(
                    BridgeTypeRef(CoreTypes.iterable, [
                      BridgeTypeRef.ref('T', []),
                    ]),
                    nullable: false),
                false)
          ],
          namedParams: [],
          generics: {'T': BridgeGenericParam()},
        ),
        isStatic: false),
    'contains': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool, []),
              nullable: false),
          params: [
            BridgeParameter(
                'element',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.object, []),
                    nullable: true),
                false)
          ],
          namedParams: [],
        ),
        isStatic: false),
    'forEach': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.voidType, []),
              nullable: false),
          params: [
            BridgeParameter(
                'action',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.function, []),
                    nullable: false),
                false)
          ],
          namedParams: [],
        ),
        isStatic: false),
    'reduce': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef.ref('E', []),
              nullable: false),
          params: [
            BridgeParameter(
                'combine',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.function, []),
                    nullable: false),
                false)
          ],
          namedParams: [],
        ),
        isStatic: false),
    'fold': BridgeMethodDef(
        BridgeFunctionDef(
            returns: BridgeTypeAnnotation(BridgeTypeRef.ref('T', []),
                nullable: false),
            params: [
              BridgeParameter(
                  'initialValue',
                  BridgeTypeAnnotation(BridgeTypeRef.ref('T', []),
                      nullable: false),
                  false),
              BridgeParameter(
                  'combine',
                  BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.function, []),
                      nullable: false),
                  false)
            ],
            namedParams: [],
            generics: {
              'T': BridgeGenericParam()
            }),
        isStatic: false),
    'every': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool, []),
              nullable: false),
          params: [
            BridgeParameter(
                'test',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.function, []),
                    nullable: false),
                false)
          ],
          namedParams: [],
        ),
        isStatic: false),
    'join': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string, []),
              nullable: false),
          params: [
            BridgeParameter(
                'separator',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string, []),
                    nullable: false),
                true)
          ],
          namedParams: [],
        ),
        isStatic: false),
    'any': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool, []),
              nullable: false),
          params: [
            BridgeParameter(
                'test',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.function, []),
                    nullable: false),
                false)
          ],
          namedParams: [],
        ),
        isStatic: false),
    'toList': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(
              BridgeTypeRef(CoreTypes.list, [
                BridgeTypeRef.ref('E', []),
              ]),
              nullable: false),
          params: [],
          namedParams: [
            BridgeParameter(
                'growable',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool, []),
                    nullable: false),
                true)
          ],
        ),
        isStatic: false),
    'toSet': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(
              BridgeTypeRef(CoreTypes.list, [
                BridgeTypeRef.ref('E', []),
              ]),
              nullable: false),
          params: [],
          namedParams: [],
        ),
        isStatic: false),
    'take': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(
              BridgeTypeRef(CoreTypes.iterable, [
                BridgeTypeRef.ref('E', []),
              ]),
              nullable: false),
          params: [
            BridgeParameter(
                'count',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
                    nullable: false),
                false)
          ],
          namedParams: [],
        ),
        isStatic: false),
    'takeWhile': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(
              BridgeTypeRef(CoreTypes.iterable, [
                BridgeTypeRef.ref('E', []),
              ]),
              nullable: false),
          params: [
            BridgeParameter(
                'test',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.function, []),
                    nullable: false),
                false)
          ],
          namedParams: [],
        ),
        isStatic: false),
    'skip': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(
              BridgeTypeRef(CoreTypes.iterable, [
                BridgeTypeRef.ref('E', []),
              ]),
              nullable: false),
          params: [
            BridgeParameter(
                'count',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
                    nullable: false),
                false)
          ],
          namedParams: [],
        ),
        isStatic: false),
    'skipWhile': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(
              BridgeTypeRef(CoreTypes.iterable, [
                BridgeTypeRef.ref('E', []),
              ]),
              nullable: false),
          params: [
            BridgeParameter(
                'test',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.function, []),
                    nullable: false),
                false)
          ],
          namedParams: [],
        ),
        isStatic: false),
    'firstWhere': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef.ref('E', []),
              nullable: false),
          params: [
            BridgeParameter(
                'test',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.function, []),
                    nullable: false),
                false)
          ],
          namedParams: [
            BridgeParameter(
                'orElse',
                BridgeTypeAnnotation(BridgeTypeRef.ref('E', []),
                    nullable: false),
                true)
          ],
        ),
        isStatic: false),
    'lastWhere': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef.ref('E', []),
              nullable: false),
          params: [
            BridgeParameter(
                'test',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.function, []),
                    nullable: false),
                false)
          ],
          namedParams: [
            BridgeParameter(
                'orElse',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.function),
                    nullable: false),
                true)
          ],
        ),
        isStatic: false),
    'singleWhere': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef.ref('E', []),
              nullable: false),
          params: [
            BridgeParameter(
                'test',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.function, []),
                    nullable: false),
                false)
          ],
          namedParams: [
            BridgeParameter(
                'orElse',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.function, []),
                    nullable: false),
                true)
          ],
        ),
        isStatic: false),
    'elementAt': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef.ref('E', []),
              nullable: false),
          params: [
            BridgeParameter(
                'index',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
                    nullable: false),
                false)
          ],
          namedParams: [],
        ),
        isStatic: false),
  },
  getters: {
    'iterator': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(
              BridgeTypeRef(CoreTypes.iterator, [
                BridgeTypeRef.ref('E', []),
              ]),
              nullable: false),
          params: [],
          namedParams: [],
        ),
        isStatic: false),
    'length': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
              nullable: false),
          params: [],
          namedParams: [],
        ),
        isStatic: false),
    'isEmpty': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool, []),
              nullable: false),
          params: [],
          namedParams: [],
        ),
        isStatic: false),
    'isNotEmpty': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool, []),
              nullable: false),
          params: [],
          namedParams: [],
        ),
        isStatic: false),
    'first': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef.ref('E', []),
              nullable: false),
          params: [],
          namedParams: [],
        ),
        isStatic: false),
    'last': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef.ref('E', []),
              nullable: false),
          params: [],
          namedParams: [],
        ),
        isStatic: false),
    'single': BridgeMethodDef(
        BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef.ref('E', []),
              nullable: false),
          params: [],
          namedParams: [],
        ),
        isStatic: false),
  },
  setters: {},
  bridge: false,
  wrap: true,
);