latLngToTimezoneString function Null safety

String latLngToTimezoneString(
  1. num lat,
  2. num lng
)

The provided code is written by Tim Cooper: tim@edval.com.au This code is available under the MIT licence: https://opensource.org/licenses/MIT

Implementation

// class TimezoneMapper {

String latLngToTimezoneString(num lat, num lng) {
  String tzId = _timezoneStrings[_getTzInt(lat, lng)];
  return tzId;
}