error property

ErrorRecord? error

Implementation

ErrorRecord? get error {
  if (errorRecordList.isNotEmpty) {
    return errorRecordList[0];
  } else {
    return null;
  }
}
void error=(ErrorRecord? error)

Implementation

set error(ErrorRecord? error) {
  if (errorRecordList.isEmpty) {
    errorRecordList.add(error!);
  } else {
    errorRecordList[0] = error!;
  }
}