onModelChange method

dynamic onModelChange(
  1. WidgetModel model, {
  2. String? property,
  3. dynamic value,
})
override

Callback function for when the model changes, used to force a rebuild with setState()

Implementation

onModelChange(WidgetModel model,{String? property, dynamic value})
{
  try
  {
    var b = Binding.fromString(property);
    if (widget.model.initialized && this.mounted && b?.property != 'busy') setState(() {});
  }
  catch(e)
  {
    Log().exception(e, caller: 'Framework.View');
  }
}