fromString static method

StackFit fromString(
  1. String? stackFit
)

Implementation

static StackFit fromString(String? stackFit) {
  switch (stackFit) {
    case null:
      return StackFit.loose;
    case "loose":
      return StackFit.loose;
    case "expand":
      return StackFit.expand;
    case "passThrough":
      return StackFit.passthrough;
    default:
      return StackFit.loose;
  }
}