get<R> method
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?;
}