init method

Future<void> init(
  1. {AssetBundle bundle,
  2. bool fullScreen = true,
  3. DeviceOrientation orientation}
)

Implementation

static Future<void> init(
    {AssetBundle bundle,
    bool fullScreen = true,
    DeviceOrientation orientation}) async {
  initializeWidget();

  if (fullScreen) {
    await util.fullScreen();
  }

  if (orientation != null) {
    await util.setOrientation(orientation);
  }

  _bundle = bundle;
}