apply method

Map<String, String> apply({
  1. required String name,
  2. String? path,
})

Apply method uses name and path to update template data with it

Implementation

Map<String, String> apply({required String name, String? path}) {
  return map((key, value) =>
      MapEntry(key._pathWith(name, rootPath: path), value._dataWith(name)));
}