AnnotationParser class

Constructors

AnnotationParser()

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
parseDirectory(String dirPath) → Future<WidgetParseResult>
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

closureParamError({required String className, required String paramName, required String dartType}) → String
Error text when a @LuaWidget param is a Dart function/closure.
isEventPayloadMapDisplay(String dartType) → bool
Display-string check for event payload maps (Map<String,…> / LuaEventPayload).
isUnsupportedClosureType({required String dartType, required bool isFunctionType, required bool isTypedefToFunction}) → bool
Whether dartType / flags represent an unsupported Dart callable.
luaCallbackNonMapError({required String className, required String paramName, required String dartType}) → String
Error text when @LuaCallback is applied to a non-map type.
validateCallbackParam({required String className, required String paramName, required String dartType, required bool isFunctionType, required bool isTypedefToFunction, String? annotationKind, required bool isEventPayloadMap}) → void
Validates callback-related ctor params; throws LuaWidgetCodegenException.