dirty method

bool dirty(
  1. dynamic fieldname
)

Implementation

bool dirty(fieldname) {
  bool b = false;
  if (_frm!.fields!.where((f) => f.fieldName == fieldname).toList().length >
      0)
    b = _frm!.fields!
            .where((f) => f.fieldName == fieldname)
            .toList()[0]
            .controller!
            .text !=
        _frm!.fields!
            .where((f) => f.fieldName == fieldname)
            .toList()[0]
            .value;
  return b;
}