init method Null safety

dynamic init(
  1. {List<Platforms>? supportedPlatforms,
  2. Platforms? override,
  3. Platforms? overrideHost}
)

Implementation

static init({
  List<Platforms>? supportedPlatforms,
  Platforms? override,
  Platforms? overrideHost,
}) {
  _instance = Platform._(
    supportedPlatforms: supportedPlatforms ?? Platforms.values,
    override: override,
    overrideHost: overrideHost,
  );
}