formatFiled method
Implementation
String formatFiled(String path, String projectPath, bool isPreview) {
if (isPreview) {
return '''
/// ![preview](file://$projectPath${path_library.separator}${_formatPreviewName(path)})
static const String ${_formatFiledName(path)} = '$path';\n''';
}
return '''
static const String ${_formatFiledName(path)} = '$path';\n''';
}