getMeta method Null safety

Json? getMeta(
  1. [dynamic scheme]
)

Implementation

Json? getMeta([dynamic scheme]) => _metaData.firstWhereOrNull((m) =>
    (m is Json &&
        ((scheme != null && m.scheme == scheme) ||
            (scheme == null && m.scheme == null)))) as Json?;