assertCheck function

void assertCheck(
  1. bool value, {
  2. String? msg,
})

Implementation

void assertCheck(bool value, {String? msg}) {
  if (!value) {
    throw FlutterError(msg ?? "断言错误");
  }
}