toWidget method
Return the associated Widget
Implementation
@override
Widget toWidget(BuildContext context) => GestureDetector(
onTap: () => FocusManager.instance.primaryFocus?.unfocus(),
child: Scaffold(
key: id == null ? null : Key(id!),
resizeToAvoidBottomInset: false,
backgroundColor: toColor(backgroundColor),
appBar: appBar == null ? null : (appBar!.toWidget(context) as AppBar),
body:
safe == true ? SafeArea(child: _child(context)) : _child(context),
floatingActionButton: floatingActionButton?.toWidget(context),
bottomNavigationBar: bottomNavigationBar?.toWidget(context)));