Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ListMixin<E>

Type parameters

  • E

Hierarchy

  • ListMixin

Implements

Index

Constructors

constructor

Properties

Private Readonly _dart_add

_dart_add: (element: E) => void = ...

Type declaration

    • (element: E): void
    • Parameters

      • element: E

      Returns void

Private Readonly _dart_addAll

_dart_addAll: (iterable: IIterable<E>) => void = ...

Type declaration

Private Readonly _dart_any

_dart_any: (test: (element: E) => boolean) => boolean = ...

Type declaration

    • (test: (element: E) => boolean): boolean
    • Parameters

      • test: (element: E) => boolean
          • (element: E): boolean
          • Parameters

            • element: E

            Returns boolean

      Returns boolean

Private Readonly _dart_asMap

_dart_asMap: () => {} = ...

Type declaration

    • (): {}
    • Returns {}

      • [index: number]: E

Private Readonly _dart_cast

_dart_cast: <R>() => IList<R> = ...

Type declaration

    • Type parameters

      • R

      Returns IList<R>

Private Readonly _dart_clear

_dart_clear: () => void = ...

Type declaration

    • (): void
    • Returns void

Private Readonly _dart_contains

_dart_contains: (element?: Object) => boolean = ...

Type declaration

    • (element?: Object): boolean
    • Parameters

      • Optional element: Object

      Returns boolean

Private Readonly _dart_elementAt

_dart_elementAt: (index: number) => E = ...

Type declaration

    • (index: number): E
    • Parameters

      • index: number

      Returns E

Private Readonly _dart_every

_dart_every: (test: (element: E) => boolean) => boolean = ...

Type declaration

    • (test: (element: E) => boolean): boolean
    • Parameters

      • test: (element: E) => boolean
          • (element: E): boolean
          • Parameters

            • element: E

            Returns boolean

      Returns boolean

Private Readonly _dart_expand

_dart_expand: <T>(f: (element: E) => IIterable<T>) => IIterable<T> = ...

Type declaration

Private Readonly _dart_fillRange

_dart_fillRange: (start: number, end: number, fill?: E) => void = ...

Type declaration

    • (start: number, end: number, fill?: E): void
    • Parameters

      • start: number
      • end: number
      • Optional fill: E

      Returns void

Private Readonly _dart_firstWhere

_dart_firstWhere: (test: (element: E) => boolean, props: { orElse?: () => undefined | E }) => E = ...

Type declaration

    • (test: (element: E) => boolean, props: { orElse?: () => undefined | E }): E
    • Parameters

      • test: (element: E) => boolean
          • (element: E): boolean
          • Parameters

            • element: E

            Returns boolean

      • props: { orElse?: () => undefined | E }
        • Optional orElse?: () => undefined | E
            • (): undefined | E
            • Returns undefined | E

      Returns E

Private Readonly _dart_fold

_dart_fold: <T>(initialValue: T, combine: (previousValue: T, element: E) => T) => T = ...

Type declaration

    • <T>(initialValue: T, combine: (previousValue: T, element: E) => T): T
    • Type parameters

      • T

      Parameters

      • initialValue: T
      • combine: (previousValue: T, element: E) => T
          • (previousValue: T, element: E): T
          • Parameters

            • previousValue: T
            • element: E

            Returns T

      Returns T

Private Readonly _dart_followedBy

_dart_followedBy: (other: IIterable<E>) => IIterable<E> = ...

Type declaration

Private Readonly _dart_forEach

_dart_forEach: (action: (element: E) => void) => void = ...

Type declaration

    • (action: (element: E) => void): void
    • Parameters

      • action: (element: E) => void
          • (element: E): void
          • Parameters

            • element: E

            Returns void

      Returns void

Private Readonly _dart_getFirst

_dart_getFirst: () => E = ...

Type declaration

    • (): E
    • Returns E

Private Readonly _dart_getHashCode

_dart_getHashCode: () => number = ...

Type declaration

    • (): number
    • Returns number

Private Readonly _dart_getIsEmpty

_dart_getIsEmpty: () => boolean = ...

Type declaration

    • (): boolean
    • Returns boolean

Private Readonly _dart_getIsNotEmpty

_dart_getIsNotEmpty: () => boolean = ...

Type declaration

    • (): boolean
    • Returns boolean

Private Readonly _dart_getIterator

_dart_getIterator: () => IIterator<E> = ...

Type declaration

Private Readonly _dart_getLast

_dart_getLast: () => E = ...

Type declaration

    • (): E
    • Returns E

Private Readonly _dart_getLength

_dart_getLength: () => number = ...

Type declaration

    • (): number
    • Returns number

Private Readonly _dart_getRange

_dart_getRange: (start: number, end: number) => IIterable<E> = ...

Type declaration

    • Parameters

      • start: number
      • end: number

      Returns IIterable<E>

Private Readonly _dart_getReversed

_dart_getReversed: () => IIterable<E> = ...

Type declaration

Private Readonly _dart_getSingle

_dart_getSingle: () => E = ...

Type declaration

    • (): E
    • Returns E

Private Readonly _dart_indexOf

_dart_indexOf: (element: undefined | Object, start: number) => number = ...

Type declaration

    • (element: undefined | Object, start: number): number
    • Parameters

      • element: undefined | Object
      • start: number

      Returns number

Private Readonly _dart_indexWhere

_dart_indexWhere: (test: (element: E) => boolean, start: number) => number = ...

Type declaration

    • (test: (element: E) => boolean, start: number): number
    • Parameters

      • test: (element: E) => boolean
          • (element: E): boolean
          • Parameters

            • element: E

            Returns boolean

      • start: number

      Returns number

Private Readonly _dart_insert

_dart_insert: (index: number, element: E) => void = ...

Type declaration

    • (index: number, element: E): void
    • Parameters

      • index: number
      • element: E

      Returns void

Private Readonly _dart_insertAll

_dart_insertAll: (index: number, iterable: IIterable<E>) => void = ...

Type declaration

    • (index: number, iterable: IIterable<E>): void
    • Parameters

      Returns void

Private Readonly _dart_join

_dart_join: (separator: string) => string = ...

Type declaration

    • (separator: string): string
    • Parameters

      • separator: string

      Returns string

Private Readonly _dart_lastIndexOf

_dart_lastIndexOf: (element?: Object, start?: number) => number = ...

Type declaration

    • (element?: Object, start?: number): number
    • Parameters

      • Optional element: Object
      • Optional start: number

      Returns number

Private Readonly _dart_lastIndexWhere

_dart_lastIndexWhere: (test: (element: E) => boolean, start?: number) => number = ...

Type declaration

    • (test: (element: E) => boolean, start?: number): number
    • Parameters

      • test: (element: E) => boolean
          • (element: E): boolean
          • Parameters

            • element: E

            Returns boolean

      • Optional start: number

      Returns number

Private Readonly _dart_lastWhere

_dart_lastWhere: (test: (element: E) => boolean, props: { orElse?: () => undefined | E }) => E = ...

Type declaration

    • (test: (element: E) => boolean, props: { orElse?: () => undefined | E }): E
    • Parameters

      • test: (element: E) => boolean
          • (element: E): boolean
          • Parameters

            • element: E

            Returns boolean

      • props: { orElse?: () => undefined | E }
        • Optional orElse?: () => undefined | E
            • (): undefined | E
            • Returns undefined | E

      Returns E

Private Readonly _dart_map

_dart_map: <T>(f: (element: E) => T) => IIterable<T> = ...

Type declaration

    • Type parameters

      • T

      Parameters

      • f: (element: E) => T
          • (element: E): T
          • Parameters

            • element: E

            Returns T

      Returns IIterable<T>

Private Readonly _dart_reduce

_dart_reduce: (combine: (previousValue: E, element: E) => E) => E = ...

Type declaration

    • (combine: (previousValue: E, element: E) => E): E
    • Parameters

      • combine: (previousValue: E, element: E) => E
          • (previousValue: E, element: E): E
          • Parameters

            • previousValue: E
            • element: E

            Returns E

      Returns E

Private Readonly _dart_remove

_dart_remove: (element?: Object) => boolean = ...

Type declaration

    • (element?: Object): boolean
    • Parameters

      • Optional element: Object

      Returns boolean

Private Readonly _dart_removeAt

_dart_removeAt: (index: number) => E = ...

Type declaration

    • (index: number): E
    • Parameters

      • index: number

      Returns E

Private Readonly _dart_removeLast

_dart_removeLast: () => E = ...

Type declaration

    • (): E
    • Returns E

Private Readonly _dart_removeRange

_dart_removeRange: (start: number, end: number) => void = ...

Type declaration

    • (start: number, end: number): void
    • Parameters

      • start: number
      • end: number

      Returns void

Private Readonly _dart_removeWhere

_dart_removeWhere: (test: (element: E) => boolean) => void = ...

Type declaration

    • (test: (element: E) => boolean): void
    • Parameters

      • test: (element: E) => boolean
          • (element: E): boolean
          • Parameters

            • element: E

            Returns boolean

      Returns void

Private Readonly _dart_replaceRange

_dart_replaceRange: (start: number, end: number, newContents: IIterable<E>) => void = ...

Type declaration

    • (start: number, end: number, newContents: IIterable<E>): void
    • Parameters

      • start: number
      • end: number
      • newContents: IIterable<E>

      Returns void

Private Readonly _dart_retainWhere

_dart_retainWhere: (test: (element: E) => boolean) => void = ...

Type declaration

    • (test: (element: E) => boolean): void
    • Parameters

      • test: (element: E) => boolean
          • (element: E): boolean
          • Parameters

            • element: E

            Returns boolean

      Returns void

Private Readonly _dart_setAll

_dart_setAll: (index: number, iterable: IIterable<E>) => void = ...

Type declaration

    • (index: number, iterable: IIterable<E>): void
    • Parameters

      Returns void

Private Readonly _dart_setFirst

_dart_setFirst: (value: E) => void = ...

Type declaration

    • (value: E): void
    • Parameters

      • value: E

      Returns void

Private Readonly _dart_setLast

_dart_setLast: (value: E) => void = ...

Type declaration

    • (value: E): void
    • Parameters

      • value: E

      Returns void

Private Readonly _dart_setLength

_dart_setLength: (newLength: number) => void = ...

Type declaration

    • (newLength: number): void
    • Parameters

      • newLength: number

      Returns void

Private Readonly _dart_setRange

_dart_setRange: (start: number, end: number, iterable: IIterable<E>, skipCount: number) => void = ...

Type declaration

    • (start: number, end: number, iterable: IIterable<E>, skipCount: number): void
    • Parameters

      • start: number
      • end: number
      • iterable: IIterable<E>
      • skipCount: number

      Returns void

Private Readonly _dart_shuffle

_dart_shuffle: (random?: IRandom) => void = ...

Type declaration

    • (random?: IRandom): void
    • Parameters

      • Optional random: IRandom

      Returns void

Private Readonly _dart_singleWhere

_dart_singleWhere: (test: (element: E) => boolean, props: { orElse?: () => undefined | E }) => E = ...

Type declaration

    • (test: (element: E) => boolean, props: { orElse?: () => undefined | E }): E
    • Parameters

      • test: (element: E) => boolean
          • (element: E): boolean
          • Parameters

            • element: E

            Returns boolean

      • props: { orElse?: () => undefined | E }
        • Optional orElse?: () => undefined | E
            • (): undefined | E
            • Returns undefined | E

      Returns E

Private Readonly _dart_skip

_dart_skip: (count: number) => IIterable<E> = ...

Type declaration

Private Readonly _dart_skipWhile

_dart_skipWhile: (test: (element: E) => boolean) => IIterable<E> = ...

Type declaration

    • (test: (element: E) => boolean): IIterable<E>
    • Parameters

      • test: (element: E) => boolean
          • (element: E): boolean
          • Parameters

            • element: E

            Returns boolean

      Returns IIterable<E>

Private Readonly _dart_sort

_dart_sort: (compare?: (a: E, b: E) => number) => void = ...

Type declaration

    • (compare?: (a: E, b: E) => number): void
    • Parameters

      • Optional compare: (a: E, b: E) => number
          • (a: E, b: E): number
          • Parameters

            • a: E
            • b: E

            Returns number

      Returns void

Private Readonly _dart_sublist

_dart_sublist: (start: number, end?: number) => IList<E> = ...

Type declaration

    • (start: number, end?: number): IList<E>
    • Parameters

      • start: number
      • Optional end: number

      Returns IList<E>

Private Readonly _dart_take

_dart_take: (count: number) => IIterable<E> = ...

Type declaration

Private Readonly _dart_takeWhile

_dart_takeWhile: (test: (element: E) => boolean) => IIterable<E> = ...

Type declaration

    • (test: (element: E) => boolean): IIterable<E>
    • Parameters

      • test: (element: E) => boolean
          • (element: E): boolean
          • Parameters

            • element: E

            Returns boolean

      Returns IIterable<E>

Private Readonly _dart_toList

_dart_toList: (props: { growable: boolean }) => IList<E> = ...

Type declaration

    • (props: { growable: boolean }): IList<E>
    • Parameters

      • props: { growable: boolean }
        • growable: boolean

      Returns IList<E>

Private Readonly _dart_toSet

_dart_toSet: () => ISet<E> = ...

Type declaration

Private Readonly _dart_toString

_dart_toString: () => string = ...

Type declaration

    • (): string
    • Returns string

Private Readonly _dart_where

_dart_where: (test: (element: E) => boolean) => IIterable<E> = ...

Type declaration

    • (test: (element: E) => boolean): IIterable<E>
    • Parameters

      • test: (element: E) => boolean
          • (element: E): boolean
          • Parameters

            • element: E

            Returns boolean

      Returns IIterable<E>

Private Readonly _dart_whereType

_dart_whereType: <T>() => IIterable<T> = ...

Type declaration

Methods

add

  • add(element: E): void

addAll

any

  • any(test: (element: E) => boolean): boolean
  • Parameters

    • test: (element: E) => boolean
        • (element: E): boolean
        • Parameters

          • element: E

          Returns boolean

    Returns boolean

asMap

  • asMap(): {}

cast

clear

  • clear(): void

contains

  • contains(element?: Object): boolean

elementAt

  • elementAt(index: number): E

every

  • every(test: (element: E) => boolean): boolean
  • Parameters

    • test: (element: E) => boolean
        • (element: E): boolean
        • Parameters

          • element: E

          Returns boolean

    Returns boolean

expand

fillRange

  • fillRange(start: number, end: number, fill?: E): void

firstWhere

  • firstWhere(test: (element: E) => boolean, props: { orElse?: () => undefined | E }): E
  • Parameters

    • test: (element: E) => boolean
        • (element: E): boolean
        • Parameters

          • element: E

          Returns boolean

    • props: { orElse?: () => undefined | E }
      • Optional orElse?: () => undefined | E
          • (): undefined | E
          • Returns undefined | E

    Returns E

fold

  • fold<T>(initialValue: T, combine: (previousValue: T, element: E) => T): T
  • Type parameters

    • T

    Parameters

    • initialValue: T
    • combine: (previousValue: T, element: E) => T
        • (previousValue: T, element: E): T
        • Parameters

          • previousValue: T
          • element: E

          Returns T

    Returns T

followedBy

forEach

  • forEach(action: (element: E) => void): void
  • Parameters

    • action: (element: E) => void
        • (element: E): void
        • Parameters

          • element: E

          Returns void

    Returns void

getFirst

  • getFirst(): E

getHashCode

  • getHashCode(): number

getIsEmpty

  • getIsEmpty(): boolean

getIsNotEmpty

  • getIsNotEmpty(): boolean

getIterator

getLast

  • getLast(): E

getLength

  • getLength(): number

getRange

  • getRange(start: number, end: number): IIterable<E>

getReversed

getSingle

  • getSingle(): E

indexOf

  • indexOf(element: undefined | Object, start?: number): number

indexWhere

  • indexWhere(test: (element: E) => boolean, start?: number): number
  • Parameters

    • test: (element: E) => boolean
        • (element: E): boolean
        • Parameters

          • element: E

          Returns boolean

    • start: number = 0

    Returns number

insert

  • insert(index: number, element: E): void

insertAll

  • insertAll(index: number, iterable: IIterable<E>): void

join

  • join(separator?: string): string

lastIndexOf

  • lastIndexOf(element?: Object, start?: number): number

lastIndexWhere

  • lastIndexWhere(test: (element: E) => boolean, start?: number): number
  • Parameters

    • test: (element: E) => boolean
        • (element: E): boolean
        • Parameters

          • element: E

          Returns boolean

    • Optional start: number

    Returns number

lastWhere

  • lastWhere(test: (element: E) => boolean, props: { orElse?: () => undefined | E }): E
  • Parameters

    • test: (element: E) => boolean
        • (element: E): boolean
        • Parameters

          • element: E

          Returns boolean

    • props: { orElse?: () => undefined | E }
      • Optional orElse?: () => undefined | E
          • (): undefined | E
          • Returns undefined | E

    Returns E

map

reduce

  • reduce(combine: (previousValue: E, element: E) => E): E
  • Parameters

    • combine: (previousValue: E, element: E) => E
        • (previousValue: E, element: E): E
        • Parameters

          • previousValue: E
          • element: E

          Returns E

    Returns E

remove

  • remove(element?: Object): boolean

removeAt

  • removeAt(index: number): E

removeLast

  • removeLast(): E

removeRange

  • removeRange(start: number, end: number): void

removeWhere

  • removeWhere(test: (element: E) => boolean): void
  • Parameters

    • test: (element: E) => boolean
        • (element: E): boolean
        • Parameters

          • element: E

          Returns boolean

    Returns void

replaceRange

  • replaceRange(start: number, end: number, newContents: IIterable<E>): void

retainWhere

  • retainWhere(test: (element: E) => boolean): void
  • Parameters

    • test: (element: E) => boolean
        • (element: E): boolean
        • Parameters

          • element: E

          Returns boolean

    Returns void

setAll

  • setAll(index: number, iterable: IIterable<E>): void

setFirst

  • setFirst(value: E): void

setLast

  • setLast(value: E): void

setLength

  • setLength(newLength: number): void

setRange

  • setRange(start: number, end: number, iterable: IIterable<E>, skipCount?: number): void

shuffle

  • shuffle(random?: IRandom): void

singleWhere

  • singleWhere(test: (element: E) => boolean, props: { orElse?: () => undefined | E }): E
  • Parameters

    • test: (element: E) => boolean
        • (element: E): boolean
        • Parameters

          • element: E

          Returns boolean

    • props: { orElse?: () => undefined | E }
      • Optional orElse?: () => undefined | E
          • (): undefined | E
          • Returns undefined | E

    Returns E

skip

skipWhile

  • skipWhile(test: (element: E) => boolean): IIterable<E>

sort

  • sort(compare?: (a: E, b: E) => number): void
  • Parameters

    • Optional compare: (a: E, b: E) => number
        • (a: E, b: E): number
        • Parameters

          • a: E
          • b: E

          Returns number

    Returns void

sublist

  • sublist(start: number, end?: number): IList<E>

take

takeWhile

  • takeWhile(test: (element: E) => boolean): IIterable<E>

toList

  • toList(props: { growable?: boolean }): IList<E>

toSet

toString

  • toString(): string

where

  • where(test: (element: E) => boolean): IIterable<E>

whereType

Generated using TypeDoc