LCFBUtil class

This class contains all REST API request functions. e.g., createFeedback, fetchAllThreads and fetchMessages.

Ensure this is initialized using init before calling all request functions.

Constructors

LCFBUtil()
Get the singleton instance.
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

createFeedback(String content, String contact) Future<SendResponse>
Create and send a new feedback message. [...]
devAppendMessage(String threadId, String content) Future<SendResponse>
Send a message as a dev to specified feedback thread.
fetchAllThreads() Future<List<Thread>>
Fetch all feedback threads. [...]
fetchMessages(String threadId) Future<List<Message>>
Fetch all messages of this thread. [...]
fetchSpecThread(String threadId) Future<List<Thread>>
Fetch a feedback thread specified by threadId.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited
userAppendMessage(String threadId, String content) Future<SendResponse>
Send a message as a user to specified feedback thread.

Operators

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

Static Methods

init({String appID, String appKey, dynamic serverUrl}) → void
Initialize using your lean cloud application info. [...]