getInstruction static method

MetaplexBubblegumProgramInstruction? getInstruction(
  1. dynamic value
)

Implementation

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