TimeFunction typedef Null safety

  1. @Deprecated('Pass around an instance of Clock instead.')
TimeFunction = DateTime Function()

Returns current time.

Implementation

@Deprecated('Pass around an instance of Clock instead.')
typedef TimeFunction = DateTime Function();