widget property Null safety
Returns the widget represented by the NavigationPage.
Implementation
Widget get widget {
switch (this) {
case NavigationPage.screens:
return const ScreensView();
case NavigationPage.templates:
return const TemplatesView();
case NavigationPage.settings:
return const SettingsView();
}
}