TransactionConfirmationStatus.fromValue constructor

TransactionConfirmationStatus.fromValue(
  1. int? value
)

Implementation

factory TransactionConfirmationStatus.fromValue(int? value) {
  return values.firstWhere(
    (element) => element.value == value,
    orElse: () => throw SolanaPluginException(
        "No TransactionConfirmationStatus found matching the specified value",
        details: {"value": value}),
  );
}