fragments property Null safety

List<FragmentDefinition> fragments

Implementation

List<FragmentDefinition> get fragments =>
    definitions.whereType<FragmentDefinition>().toList();