getStopwatch method Null safety

  1. @Deprecated('Use stopwatch() instead.')
Stopwatch getStopwatch()
Deprecated('Use stopwatch() instead.')">@Deprecated('Use stopwatch() instead.')

Returns a new stopwatch that uses the current time as reported by this.

Implementation

@Deprecated('Use stopwatch() instead.')
Stopwatch getStopwatch() => stopwatch();