AutoFillHelper class
The main utility class that supports Faker & optional AI-powered data.
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
-
autoFillWithAI(
{required Map< TextEditingController?, FieldType> fields, required AutoFillMode mode, required AiTextClient aiClient, Map<FieldType, String> ? contextPerField}) → Future<void> - AI-powered autofill:
-
fillControllers(
Map< TextEditingController?, String Function()> mapping) → void - Fill multiple controllers using functions (Faker or your own generators).
-
getAiImageFile(
{required AiTextClient aiClient, String? prompt, Duration timeout = const Duration(seconds: 25)}) → Future< File> - AI image -> File: downloads an image URL (from Picsum or AI provider).
-
getFakeImageFile(
) → Future< File> - Local asset fake image -> File (keeps your current behavior)
-
randomSelection<
T> (List< T> items, {int min = 1}) → List<T> - Randomly select some items (with min constraint). Safe on empty lists.
-
selectFirst<
T> (List< T> items, {int count = 1}) → List<T> - Always select first item safely.