lastSignInTime property Null safety

DateTime? lastSignInTime

When the user last signed in as dictated by the server clock.

This is only accurate up to a granularity of 2 minutes for consecutive sign-in attempts.

Implementation

DateTime? get lastSignInTime => _lastSignInTime == null
    ? null
    : DateTime.fromMillisecondsSinceEpoch(_lastSignInTime!);