dartpoet library

Support for doing something awesome.

More dartdocs go here.

Classes

ClassSpec
CodeBlockSpec
ConstructorSpec
DartFile
DependencySpec
DocSpec
FileSpec
GetterSpec
MetaSpec
MethodSpec
OperatorSpec
ParameterSpec<T>
PropertySpec
SetterSpec
Spec
TypeToken

Constants

KEY_REVERSE_CLASSES → const String
'reverse_classes'
KEY_WITH_BLOCK → const String
'with_block'
KEY_WITH_DEF_VALUE → const String
'with_def_value'
KEY_WITH_LAMBDA → const String
'with_lambda'

Functions

collectClasses(List<ClassSpec> classes) String
collectCodeBlock(CodeBlockSpec codeBlock, {bool withLambda: true, bool withBlock: true, CodeBlockEmptiedCollectingMode collectingMode: CodeBlockEmptiedCollectingMode.end}) String
collectCodeBlocks(List<CodeBlockSpec> codeBlocks) String
collectConstructors(List<ConstructorSpec> constructors) String
collectDependencies(List<DependencySpec> dependencies) String
collectGetters(List<GetterSpec> getters) String
collectMetas(List<MetaSpec> metas) String
collectMethods(List<MethodSpec> methods) String
collectOperatorMethods(List<OperatorSpec> operators) String
collectParameters(List<ParameterSpec> parameters) String
collectProperties(List<PropertySpec> properties) String
collectSetters(List<SetterSpec> setters) String
collectWithDoc(DocSpec doc, String raw) String
collectWithMeta(List<MetaSpec> metas, String raw) String
format(String source) String
isBool(Type type) bool
isDouble(Type type) bool
isInt(Type type) bool
isList(Type type) bool
isMap(Type type) bool
isPrimitive(Type type) bool
isString(Type type) bool
resolveGenerics(String fullTypeName) Iterable<TypeToken>
resolveTypeName(String fullTypeName) String

Enums

AsynchronousMode
CodeBlockEmptiedCollectingMode
ConstructorMode
DependencyMode
ParameterMode