EnhancedWidgetPatternDetector class
Enhanced widget pattern detector that supports complex Flutter patterns
Constructors
- EnhancedWidgetPatternDetector({required LocalizationCheckerConfig config, bool verbose = false})
Properties
- config → LocalizationCheckerConfig
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- verbose → bool
-
final
Methods
-
isInUiContext(
String content, List< String> contextLines) → bool - Detects if a string literal is in a UI-related context based on surrounding code
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shouldLocalizeString(
String content, List< String> contextLines, String filePath, int lineNumber) → bool - Enhanced method to check if a string should be localized
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
advancedUiPatterns
→ const List<
String> - Advanced UI patterns including state management and navigation