runtime_assert
Features
Kotlinと同様の実行時Assertを提供する.
Usage
check(value == 1, 'Invalid value: $value'); // throws IllegalStateException
checkArgument(value == 1, 'Invalid argument: $value'); // throws IllegalArgumentException
checkFormat(value == 1, 'Invalid format: $value'); // throws FormatException
checkPlatform(value ==1, 'Invalid platform: $value'); // throws UnsupportedPlatformException
requireNotNul(value, 'value is null'); // throws IllegalStateException