onChange method

Future<bool> onChange()

Implementation

Future<bool> onChange() async
{
  bool ok = true;

  if (!S.isNullOrEmpty(onchange))
  {
    // This is Hack in Case Onchange Is Bound to Its own Value
    if (_onchange!.bindings != null) _onchange!.onObservableChange(null);

    // fire onchange event
    ok = await EventHandler(this).execute(_onchange);
  }

  return ok;
}