SharkController.fromLocal constructor

SharkController.fromLocal({
  1. required String? source,
  2. required BuildContext context,
  3. bool handleClickEvent = true,
})

Apply widget from local source

Implementation

SharkController.fromLocal(
    {required this.source,
    required this.context,
    this.handleClickEvent = true}) {
  _isLocalSource = true;
  _streamController.add(_state);
  _resultJson = jsonDecode(source!);
}