getFragment method Null safety

FragmentDefinition? getFragment(
  1. String name
)

Implementation

FragmentDefinition? getFragment(String name) {
  final node = _fragmentNodeMap[name];
  if (node == null) {
    return null;
  }
  return FragmentDefinition(node, getType);
}