afterSubmit method

dynamic afterSubmit(
  1. dynamic context,
  2. dynamic formName,
  3. dynamic result
)

Implementation

afterSubmit(context, formName, result) {
  myLogAll('afterSubmit');
  Map<dynamic, dynamic> formDefine = _formLists[formName]!;
  if (formDefine[gBtns] != null) {
    List btnList = formDefine[gBtns];
    for (int i = 0; i < btnList.length; i++) {
      Map bi = btnList[i];
      result.add(
        const SizedBox(
          height: 10.0,
        ),
      );

      result.add(
        InkWell(
          child: Text(
            getSCurrent(bi[gLabel]),
            style: const TextStyle(color: Colors.black),
          ),
          onTap: () {
            sendRequestOne(bi[gAction], [], context);
          },
        ),
      );
    }
  }
}