LiveScene<Data, Loading, Error> constructor
LiveScene<Data, Loading, Error> ({
- required LiveData<
Data?> data, - required LiveData<
Loading?> loading, - 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');
}
}