getInstruction static method

SystemProgramInstruction? getInstruction(
  1. dynamic value
)

Implementation

static SystemProgramInstruction? getInstruction(dynamic value) {
  try {
    return values.firstWhere((element) => element.insturction == value);
  } catch (e) {
    return null;
  }
}