webviewApp method Null safety

MaterialApp webviewApp(
  1. String appTitle,
  2. String url,
  3. {MaterialColor color = Colors.cyan}
)

Implementation

static MaterialApp webviewApp(String appTitle, String url,
        {MaterialColor color = Colors.cyan}) =>
    MaterialApp(
      title: appTitle,
      debugShowCheckedModeBanner: false,
      theme: ThemeData(primarySwatch: color),
      home: SafeArea(
          child: Scaffold(
        body: WebView(
          initialUrl: url,
          javascriptMode: JavascriptMode.unrestricted,
        ),
      )),
    );