CommonPatterns class

Constructors

CommonPatterns()

Properties

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

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

Static Methods

abstractMethod({required String name, required String returnType, Iterable<Parameter> parameters = const []}) → Method
barrelHideNamesForTypes(Iterable<String?> types) List<String>
The framework-barrel hide names for every locally-imported entity type in types (issue #942) — the entity symbol plus its zorphy Patch pair (EntityUtils.barrelHideNames) for each base type that entityImports would resolve to an entity-file import (same extraction and exclusion rules). Types that do not shape to a Dart identifier are skipped so a malformed type string cannot emit a malformed hide clause.
constructor({String? name, bool isConst = false, Iterable<Parameter> parameters = const [], Iterable<Code> initializers = const [], Code? body}) → Constructor
entityImports(List<String?> types, GeneratorConfig config, {int depth = 1, bool includeDomain = true, DiscoveryEngine? discovery, FileSystem? fileSystem}) List<String>
extractBaseTypes(String type) List<String>
finalField(String name, String type, {bool isLate = false}) → Field
findUseCaseDomain(String usecaseSnake, String defaultDomain, String outputDir, {DiscoveryEngine? discovery, FileSystem? fileSystem}) Future<String>
optionalNamedParam(String name, String type, {Code? defaultTo}) → Parameter
parseUseCaseInfo(String u, GeneratorConfig config, String outputDir, {DiscoveryEngine? discovery, FileSystem? fileSystem}) Future<ParsedUseCaseInfo>
requiredNamedParam(String name, String type) → Parameter