TimeFunction typedef Null safety

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

Returns current time.

Implementation

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