fromData<P extends DataProvider, T> static method

DataRef<P, T> fromData<P extends DataProvider, T>({
  1. required T getter(
    1. P
    ),
  2. required void setter(
    1. P,
    2. 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);