FeedbackBackend class abstract

Contract for submitting FeedbackEntry objects to a remote service.

Implement this interface to connect flutter_feedback_kit to any backend — Firebase, Supabase, a custom REST API, or a local sink for testing.

class FirebaseBackend implements FeedbackBackend {
  @override
  Future<void> submit(FeedbackEntry entry) async {
    await FirebaseFirestore.instance
        .collection('feedback')
        .add(entry.toJson());
  }
}
Implementers

Constructors

FeedbackBackend()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Releases resources held by this backend (e.g. an HTTP client).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
submit(FeedbackEntry entry) Future<void>
Sends entry to the backend.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited