setTestOverrides static method

  1. @visibleForTesting
void setTestOverrides({
  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 setTestOverrides({
  Now? now,
  GetCallbackHandle? getCallbackHandle,
}) {
  _now = (now ?? _now);
  _getCallbackHandle = (getCallbackHandle ?? _getCallbackHandle);
}