getBool property

bool? get getBool

转换为一个可能为空的bool类型

Implementation

bool? get getBool {
  final intValue = this.getInt;
  if (intValue == null) return null;
  return intValue == 1;
}