getDeclarationMeta method Null safety

JsonProperty? getDeclarationMeta(
  1. DeclarationMirror dm,
  2. [dynamic scheme]
)

Implementation

JsonProperty? getDeclarationMeta(DeclarationMirror dm, [dynamic scheme]) {
  final all = getAllDeclarationMeta(dm, scheme);
  return all.isNotEmpty ? all.last : null;
}