TransactionConfirmationStatus.fromName constructor

TransactionConfirmationStatus.fromName(
  1. String? value
)

Implementation

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