QueryName.fromPath constructor

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

Generate class name from hierarchical path

Implementation

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