of method
Determines the form factor for a given viewport width.
Implementation
FilamentFormFactor of(double width) {
if (width >= expanded) {
return FilamentFormFactor.expanded;
} else if (width >= medium) {
return FilamentFormFactor.medium;
} else {
return FilamentFormFactor.compact;
}
}