errors property

List<TransactionError>? get errors

Implementation

List<TransactionError>? get errors {
  if (type == TransactionEventType.transactionDidFail) {
    final errorList = data['errors'];
    if (errorList != null && errorList is List) {
      return errorList
          .map((e) => TransactionError.fromMap(Map<String, dynamic>.from(e)))
          .toList();
    }
  }
  return null;
}