LiveScene<Data, Loading, Error> constructor

LiveScene<Data, Loading, Error>({
  1. required LiveData<Data?> data,
  2. required LiveData<Loading?> loading,
  3. required LiveData<Error?> error,
})

Implementation

LiveScene({
  required this.data,
  required this.loading,
  required this.error,
}) {
  if (!isNullableType<Data>() || !isNullableType<Loading>() || !isNullableType<Error>()) {
    throw Exception('to use LiveDataSceneHolder: data, loading, and error must be nullable type');
  }
}