value property
FormFactors
value
Implementation
FormFactors get value {
final width = MediaQuery.of(navigatorKey.currentContext!).size.width;
if (breakpoints?.desktop != null && width >= breakpoints!.desktop!) {
return FormFactors.desktop;
} else if (breakpoints?.tablet != null && width >= breakpoints!.tablet!) {
return FormFactors.tablet;
}
return FormFactors.mobile;
}