get<R> method

  1. @override
R? get<R>([
  1. dynamic id = 0
])
override

Get Data of provide Type R and at an index id

id optional index value as int R type of argument expected

Implementation

@override
R? get<R>([id = 0]) {
  assert(R == dynamic || R == Object || (data[id]?.runtimeType ?? R) == R,
      'type mismatch expected $R found ${data[id]?.runtimeType}');
  return data[id] as R?;
}