initialData method

dynamic initialData(
  1. dynamic loadData(), {
  2. bool refreshState = false,
})

Load data for the form

Implementation

initialData(Function() loadData, {bool refreshState = false}) {
  _loadData = loadData;

  if (!refreshState) return;
  NyForm.stateRefresh(stateName);
}