fromBool static method

TimeZoneType fromBool(
  1. bool isLocal
)

Creates TimeZoneType from boolean true = local, false = UTC

Implementation

static TimeZoneType fromBool(bool isLocal) {
  return isLocal ? TimeZoneType.local : TimeZoneType.utc;
}