checkFormat function
Kotlin.check()の代替関数. test != trueの場合、message()を評価して例外を投げる. この関数はRelease Runtimeにも残される点がassertと異なる.
Implementation
// ignore: avoid_positional_boolean_parameters
void checkFormat(bool test, dynamic message) {
if (!test) {
if (message is GetAssertionMessage) {
throw FormatException(message());
} else {
throw FormatException(message.toString());
}
}
}