TZDateTime.now constructor Null safety

TZDateTime.now(
  1. Location location
)

Constructs a TZDateTime instance with current date and time in the location time zone.

final detroit = getLocation('America/Detroit');

final thisInstant = TZDateTime.now(detroit);

Implementation

TZDateTime.now(Location location) : this.from(DateTime.now(), location);