getCurrency static method Null safety

Future<Currency?> getCurrency(
  1. {String? code}
)

Gets currency for code and name.