GFormatter class

Constructors

GFormatter({int maxLine = 300, bool enable = true, List<String> ignoresFiles = const [], List<String> ignoresDirs = const [], bool showTotalCodeLines = false})
全局安装dart_style pub global activate dart_style
const

Properties

dir String?
路径目录
finalinherited
enable bool
final
hashCode int
The hash code for this object.
no setterinherited
ignoresDirs List<String>
忽略被统计的文件夹列表 不会统计 > 300行优化,但会全局代码统计 从lib目录以下开始配置
final
ignoresFiles List<String>
忽略文件列表 不会统计 > 300行优化,但会全局代码统计 从lib目录以下开始配置
final
maxLine int
dart文件最大代码行数,包含空行 超过文件将会被统计输出,忽略自动生成的文件
final
name String?
文件名
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showTotalCodeLines bool
统计主工程lib下所有源代码行数
final
suffix String?
后缀
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited