fromString static method

UIActionType? fromString(
  1. String command
)

Implementation

static UIActionType? fromString(String command) {
  try {
    return values.firstWhere(
      (e) => e.value == command.trim().toUpperCase(),
    );
  } catch (_) {
    return null;
  }
}