getLayout function
Implementation
Layouts getLayout(BuildContext context) {
return [ScreenResolutions.xs, ScreenResolutions.sm]
.contains(getScreenResolution(context))
? Layouts.fullDrawer
: getScreenResolution(context) == ScreenResolutions.md
? Layouts.onlyTicketDrawer
: [ScreenResolutions.lg, ScreenResolutions.xl]
.contains(getScreenResolution(context))
? Layouts.noDrawer
: Layouts.fullDrawer;
}