formatFiled method

String formatFiled(
  1. String path,
  2. String projectPath,
  3. bool isPreview
)

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''';
}