FragmentName.fromPath constructor

FragmentName.fromPath({
  1. required List<Name?> path,
})

Generate class name from hierarchical path

Implementation

factory FragmentName.fromPath({required List<Name?> path}) {
  return FragmentName(name: path.map((e) => e!.dartTypeSafe).join(r'$_'));
}