FloatyStateChannel<S> constructor
FloatyStateChannel<S> ({})
Creates a state channel for the main app side.
Implementation
FloatyStateChannel({
required Map<String, dynamic> Function(S state) toJson,
required S Function(Map<String, dynamic> json) fromJson,
required S initialState,
}) : _toJson = toJson,
_fromJson = fromJson,
_state = initialState {
_init();
}