StreamValue<T> constructor
StreamValue<T> ({
- T? defaultValue,
Implementation
StreamValue({T? defaultValue}) {
try {
_defaultValue = defaultValue as T;
} catch (e) {
throw Exception("if T is not-nullable, then default value is mandatory.");
}
}