On native platforms, synchronously pauses the current isolate for the given Duration.
@visibleForOverriding void sleep(Duration duration) {}