getCollapseMode method

CollapseMode? getCollapseMode(
  1. String? value
)

Implementation

CollapseMode? getCollapseMode(String? value) {
  if (value == null || value.isEmpty) return null;

  switch (value) {
    case "pin":
      return CollapseMode.pin;
    case "parallax":
      return CollapseMode.parallax;
    default:
      return CollapseMode.none;
  }
}