Types constructor

Types({
  1. String? type,
  2. double? amount,
})

Implementation

Types({String? type, double? amount}) {
  if (type != null) {
    _type = type;
  }
  if (amount != null) {
    _amount = amount;
  }
}