checkParams method

  1. @override
bool checkParams()
override

Checks whether all params required by the verb builder are set. Returns false if required params are not set.

Implementation

@override
bool checkParams() {
  var isValid = true;
  try {
    if (DateTime.parse(toDate!).millisecondsSinceEpoch <
        DateTime.parse(fromDate!).millisecondsSinceEpoch) {
      isValid = false;
    }
  } on Exception {
    isValid = false;
  }
  return isValid;
}