getStretchMode method

StretchMode? getStretchMode(
  1. String? value
)

Implementation

StretchMode? getStretchMode(String? value) {
  if (value == null || value.isEmpty) return null;

  switch (value) {
    case "fadeTitle":
      return StretchMode.fadeTitle;
    case "blurBackground":
      return StretchMode.blurBackground;
    default:
      return StretchMode.zoomBackground;
  }
}