buildFor method
Builds the right variant for screenType.
Implementation
Widget buildFor(AppScreenType type) {
switch (type) {
case AppScreenType.phone:
return phone;
case AppScreenType.tablet:
return tablet ?? phone;
case AppScreenType.desktop:
return desktop ?? tablet ?? phone;
}
}