badState static method

StateException badState(
  1. String operation, {
  2. String? name,
  3. required String reason,
  4. int? expecteLen,
  5. Map<String, dynamic>? details,
})

Implementation

static StateException badState(
  String operation, {
  String? name,
  required String reason,
  int? expecteLen,
  Map<String, dynamic>? details,
}) => StateException._(
  "$operation not allowed in current state.",
  details: {"expected": operation, "reason": reason},
);