TestItemCollection constructor

TestItemCollection({
  1. num? size,
  2. void replace(
    1. List<TestItem>
    )?,
  3. void forEach(
    1. Object? (
      1. TestItem,
      2. TestItemCollection
      ), [
    2. dynamic
    ])?,
  4. void add(
    1. TestItem
    )?,
  5. void delete(
    1. String
    )?,
  6. TestItem? get(
    1. String
    )?,
})

Implementation

factory TestItemCollection({
  _i2.num? size,
  void Function(_i2.List<_i3.TestItem>)? replace,
  void Function(
    _i2.Object? Function(
      _i3.TestItem,
      _i3.TestItemCollection,
    ), [
    _i2.dynamic,
  ])? forEach,
  void Function(_i3.TestItem)? add,
  void Function(_i2.String)? delete,
  _i3.TestItem? Function(_i2.String)? get,
}) =>
    TestItemCollection._(
      size: size,
      replace: replace == null ? null : _i5.allowInterop(replace),
      forEach: forEach == null ? null : _i5.allowInterop(forEach),
      add: add == null ? null : _i5.allowInterop(add),
      delete: delete == null ? null : _i5.allowInterop(delete),
      get: get == null
          ? null
          : _i5.allowInterop((p0) => () => get(p0) ?? _i6.undefined),
    );