setPlatform function

void setPlatform(
  1. {TargetPlatform targetPlatform,
  2. bool withoutSplashOnCupertino = true}
)

set the platform

Implementation

void setPlatform({
  TargetPlatform targetPlatform,
  bool withoutSplashOnCupertino = true,
}) {
  basePlatform = targetPlatform ?? defaultTargetPlatform;
  withoutSplashOnCupertino = withoutSplashOnCupertino;
}