getModalWidthBasedOnType static method
returns the width a modal should be based on the passed type sm = 300 md = 500 lg = 800 xl = 1140
Implementation
static double getModalWidthBasedOnType(String type) {
if (!modalTypes.contains(type)) {
throw FormatException(
"BSBreakPoints:\nMust pass a valid modal type (case sensitive):\n${modalTypes.toString()}\nYou passed:\n$type");
}
return modalTypesAndSizes[type]!;
}