EasyCoder class

Json序列化的数据模型的生成器、虚拟机桥接类型的生成器

Inheritance

Constructors

EasyCoder({required EasyCoderConfig config})

Properties

hashCode int
The hash code for this object.
no setterinherited
logTag String
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generateBaseExports({String outputFile = 'all'}) → void
生成基本模型导出文件
generateModel(EasyCoderModelInfo modelInfo) → void
生成数据库模型
generateVmLibraries({String outputFile = 'bridges_library', List<String> importList = const [], String className = 'BridgesLibrary', String classDesc = 'BridgesLibrary', required List<String> libraryPaths, List<String> privatePaths = const [], List<String> ignoreIssuePaths = const ['/dart-sdk/lib/core/null.dart', '/flutter/lib/src/services/dom.dart', '/flutter/lib/src/widgets/window.dart', '/flutter/lib/src/cupertino/toggleable.dart', '_web.dart'], Map<String, List<String>> ignoreIssueClass = const {}, List<String> ignoreProxyObject = const ['Iterable.asNameMap', 'Iterable.byName', 'Iterable.wait', 'PlatformViewController.disposePostFrame', 'ToggleablePainter.isActive'], List<String> ignoreProxyCaller = const ['CupertinoRadio.new', 'Radio.new', 'Radio.adaptive', 'RadioListTile.new', 'RadioListTile.adaptive', 'RadioMenuButton.new', 'SharedAppData.getValue', 'GestureRecognizerFactoryWithHandlers.new', 'PaginatedDataTable.new', 'ImageProvider.loadImage', 'WidgetInspectorService.initServiceExtensions', 'Autocomplete.new', 'RawAutocomplete.new'], List<String> ignoreExtensionOn = const ['Object'], Map<String, List<String>> includePathClass = const {}, Map<String, List<String>> excludePathClass = const {}, bool removeNotFoundPrivateParams = true, bool genByExternal = true}) → void
生成文件夹下的桥接类
generateWrapBuilder({String outputFile = 'wrapper_builder', List<String> importList = const [], String className = 'WrapperBuilder', String? wrapBaseClass, bool exportFile = true}) → void
生成包装模型构建器类
logDebug(List args) → void
inherited
logError(List args) → void
inherited
logFatal(List args) → void
inherited
logInfo(List args) → void
inherited
logTrace(List args) → void
inherited
logVmLibrarydErrors() → void
统一打印桥接库生成时的错误
logWarn(List args) → void
inherited
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

Static Methods

firstUpperCaseName(String name) String
name的第一个字母改为大写