value property

T value

Implementation

T get value => when(
    loading: () => throw Exception('Got value in loading state'),
    refreshing: (v) => v as T,
    value: (v) => v as T);