fromValue static method

UITableViewCellSeparatorStyle fromValue(
  1. int value
)

Implementation

static UITableViewCellSeparatorStyle fromValue(int value) => switch (value) {
  0 => UITableViewCellSeparatorStyleNone,
  1 => UITableViewCellSeparatorStyleSingleLine,
  2 => UITableViewCellSeparatorStyleSingleLineEtched,
  _ => throw ArgumentError('Unknown value for UITableViewCellSeparatorStyle: $value'),
};