FakeBatch class

A utility class for generating batches of fake data.

This class provides static methods to generate multiple fake entities at once, such as lists of people, companies, products, and complete datasets for testing and prototyping.

Constructors

FakeBatch()

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

apiResponse({required String endpoint, int statusCode = 200, bool success = true}) Map<String, dynamic>
Generate fake API response data
companies(int count) List<Map<String, dynamic>>
Generate multiple fake companies at once
databaseRecords(String tableName, int count, List<String> columns) List<Map<String, dynamic>>
Generate fake database records
dataset({int users = 10, int companyCount = 5, int productCount = 20, int orderCount = 50}) Map<String, dynamic>
Generate a complete fake dataset
orders(int count) List<Map<String, dynamic>>
Generate multiple fake orders at once
people(int count) List<Map<String, dynamic>>
Generate multiple fake people at once
products(int count) List<Map<String, dynamic>>
Generate multiple fake products at once