withTimeZone method

TZDateTime withTimeZone(
  1. Location? location
)

Implementation

TZDateTime withTimeZone(Location? location) {
  if (this is TZDateTime) return (this as TZDateTime);
  return TZDateTime.from(this, location ?? sunnyLocalization.userLocation!);
}