getInstruction static method

MetaplexBubblegumProgramInstruction? getInstruction(
  1. dynamic value
)

Implementation

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