illegalState<T> function

T illegalState<T>([
  1. String? message
])

Implementation

T illegalState<T>([String? message]) =>
    throw Exception(message ?? "Illegal state");