StreamValue<T> constructor

StreamValue<T>({
  1. 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.");
  }
}