debugCheckInvalidValueType property

void Function<T>(T value) debugCheckInvalidValueType
read / write

Implementation

static void Function<T>(T value) debugCheckInvalidValueType = <T>(T value) {
  assert(() {
    if (value is Listenable || value is Stream) {
      throw FlutterError('''
Tried to use EasyState with a subtype of Listenable/Stream ($T).

```
''');
    }
    return true;
  }());
}