init method

void init(
  1. String? code,
  2. String? guid
)

Implementation

void init(String? code, String? guid) async {
  _code = code;
  //_guid = guid;
  _frm = Frm(
      code: '',
      guid: '00000000-0000-0000-0000-000000000000',
      children: [],
      pages: [],
      fields: []);
  _frm!.code = code!;
  _frm!.guid = guid!;
  isInit = true;
  //if (_frm != null && guid != null) {
  //await loadForm();
  //}
}