fromValue static method

UITableViewCellSelectionStyle fromValue(
  1. int value
)

Implementation

static UITableViewCellSelectionStyle fromValue(int value) => switch (value) {
  0 => UITableViewCellSelectionStyleNone,
  1 => UITableViewCellSelectionStyleBlue,
  2 => UITableViewCellSelectionStyleGray,
  3 => UITableViewCellSelectionStyleDefault,
  _ => throw ArgumentError('Unknown value for UITableViewCellSelectionStyle: $value'),
};