defaultValue property

int get defaultValue

安全取值:null → 0,否则返回自身(safeValue 的语义化别名)。

Implementation

int get defaultValue {
  if (this == null) {
    return 0;
  }
  return this!;
}