getFloatingActionButtonLocation method
Implementation
FloatingActionButtonLocation? getFloatingActionButtonLocation(String? value) {
if (value == null || value.isEmpty) {
return null;
}
switch (value) {
case "centerTop":
return FloatingActionButtonLocation.centerTop;
case "centerFloat":
return FloatingActionButtonLocation.centerFloat;
case "centerDocked":
return FloatingActionButtonLocation.centerDocked;
case "startTop":
return FloatingActionButtonLocation.startTop;
case "startFloat":
return FloatingActionButtonLocation.startFloat;
case "startDocked":
return FloatingActionButtonLocation.startDocked;
case "endTop":
return FloatingActionButtonLocation.endTop;
case "endFloat":
return FloatingActionButtonLocation.endFloat;
case "endDocked":
return FloatingActionButtonLocation.endDocked;
default:
return null;
}
}