FeatureRequestSubmissionResult class

Result returned after submitting a new feature request.

Indicates whether the proposal is immediately visible or pending moderation review.

Example

final result = await client.submitFeatureRequest(draft, userToken: token);
if (result.pending) {
  print('Proposal submitted and waiting for moderation.');
}

Constructors

FeatureRequestSubmissionResult({required String featureRequestId, required bool pending})
Creates a FeatureRequestSubmissionResult record.
const
FeatureRequestSubmissionResult.fromJson(Map<String, dynamic> json)
Deserializes FeatureRequestSubmissionResult from a server JSON response.
factory

Properties

featureRequestId → String
Database ID of the newly submitted feature request.
final
hashCode → int
The hash code for this object.
no setterinherited
pending → bool
Whether the request is pending moderator approval before public display.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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