getInstruction static method

MetaplexGumdropProgramInstruction? getInstruction(
  1. dynamic value
)

Implementation

static MetaplexGumdropProgramInstruction? getInstruction(dynamic value) {
  try {
    return values
        .firstWhere((element) => bytesEqual(element.insturction, value));
  } on StateError {
    return null;
  }
}