fromValue static method

TruncateOptions fromValue(
  1. int value
)

Implementation

static TruncateOptions fromValue(int value) {
  return TruncateOptions.values
      .firstWhere((element) => element.value == value, orElse: () => none);
}