fromData<P extends DataProvider, T> static method
DataRef<P, T>
fromData<P extends DataProvider, T>({
- required T getter(
- P
- required void setter(
- P,
- T
Implementation
static DataRef<P, T> fromData<P extends DataProvider, T>({
required T Function(P) getter,
required void Function(P, T) setter,
}) =>
DataRef._(getter: getter, setter: setter);