wrapAlignment static method

WrapAlignment? wrapAlignment(
  1. dynamic value
)

Implementation

static WrapAlignment? wrapAlignment(dynamic value) => switch (value) {
      'start' => WrapAlignment.start,
      'end' => WrapAlignment.end,
      'center' => WrapAlignment.center,
      'spaceBetween' => WrapAlignment.spaceBetween,
      'spaceAround' => WrapAlignment.spaceAround,
      'spaceEvenly' => WrapAlignment.spaceEvenly,
      _ => null
    };