setupMockInstances function
Attach UrlLauncherPlatform.instance
to MockUrlLauncherPlatform
with completed replication of MockClient and parsed as
a Function for calling MockClient.new.
If mockClientConstructor
is omitted, MockUrlLauncherPlatform
will attach MockOgHrefClient.usesSample as default.
Implementation
@visibleForTesting
void setupMockInstances([MockClient Function()? mockClientConstructor]) {
UrlLauncherPlatform.instance = MockUrlLauncherPlatform(
mockClientConstructor ?? MockOgHrefClient.usesSample);
}