getCurrency method

int? getCurrency({
  1. required Currency currency,
})

Returns the quantity of a certain Currency that the user holds in their inventory.

Implementation

int? getCurrency({required Currency currency}) {
  return currencies[currency];
}