klutter_ui library

Flutter widgets to be used in conjunction with the klutter plugin.

Classes

AdapterResponse<T>
Wrapper class for transferring response data from Platform to Flutter.
Subscriber<T>
A widget that receives 0 or more messages of type T and automatically updates it and it's dependents state.

Functions

doEvent<OUT>({required String event, required MethodChannel channel, dynamic message, State<StatefulWidget>? state, OUT decode(String)?, String encode(dynamic)?, OUT decodeBuffer(List<int>)?, Uint8List encodeBuffer(dynamic)?, void onSuccess(OUT)?, void onFailure(Exception)?, void onNullValue()?, void onComplete(AdapterResponse<OUT>)?}) Future<AdapterResponse<OUT>>
Send an event to Android/iOS platform and wait for a response AdapterResponse.