setTestOverides static method

  1. @visibleForTesting
void setTestOverides({
  1. _Now? now,
  2. _GetCallbackHandle? getCallbackHandle,
})

This is exposed for the unit tests. It should not be accessed by users of the plugin.

Implementation

@visibleForTesting
static void setTestOverides(
    {_Now? now, _GetCallbackHandle? getCallbackHandle}) {
  _now = (now ?? _now);
  _getCallbackHandle = (getCallbackHandle ?? _getCallbackHandle);
}