subtract method Null safety

dynamic subtract(
  1. dynamic executedBefore
)

Implementation

dynamic subtract(dynamic executedBefore) {
  amount = amount * -1;
  final returnValue = add(executedBefore);
  amount = amount * -1;
  return returnValue;
}