isNumTrue property

bool get isNumTrue

判断字符标识是否true(eg. true or 1)

Implementation

bool get isNumTrue {
  if (this == null) {
    return false;
  }
  if (this is num) {
    return this == 1;
  }
  return false;
}