$new static method

$Value? $new(
  1. Runtime runtime,
  2. $Value? target,
  3. List<$Value?> args
)

Implementation

static $Value? $new(Runtime runtime, $Value? target, List<$Value?> args) {
  return $MaterialApp.wrap(MaterialApp(
    key: args[0]?.$value,
    navigatorKey: args[1]?.$value,
    home: args[2]?.$value,
    routes:
        args[3] == null ? const {} : _$reifyRoutes(runtime, args[3] as $Map),
    initialRoute: args[4]?.$value,
    onUnknownRoute: args[5] == null
        ? null
        : (settings) => (args[5]! as EvalCallable)
            .call(runtime, null, [$Object(settings)])?.$value,
    builder: args[6] == null
        ? null
        : (context, child) => (args[6]! as EvalCallable).call(runtime, null, [
              $BuildContext.wrap(context),
              child == null ? const $null() : $Widget.wrap(child)
            ])?.$value,
    title: args[7]?.$value ?? '',
    onGenerateTitle: args[8] == null
        ? null
        : (context) => (args[8]! as EvalCallable)
            .call(runtime, null, [$BuildContext.wrap(context)])?.$value,
    color: args[9]?.$value,
    theme: args[10]?.$value,
    darkTheme: args[11]?.$value,
    debugShowMaterialGrid: args[12]?.$value ?? false,
    showPerformanceOverlay: args[13]?.$value ?? false,
    checkerboardRasterCacheImages: args[14]?.$value ?? false,
    checkerboardOffscreenLayers: args[15]?.$value ?? false,
    debugShowCheckedModeBanner: args[16]?.$value ?? true,
  ));
}