InvariantException constructor

InvariantException(
  1. String messageId, [
  2. String? what,
  3. List<String> args = const []
])

Implementation

InvariantException(
  String messageId, [
  String? what,
  List<String> args = const [],
]) : super(
        (_invariantMessages[messageId] ?? _invariantMessages['default'])!(
          what!,
          args,
        ),
      );