asIntOr method

int? asIntOr([
  1. int? defaultValue
])

If object is int then return it otherwise default value

Implementation

int? asIntOr([int? defaultValue]) {
  return _getValueOr<int>(defaultValue);
}