mock_data
2.0.1, released 3 years ago by an unverified publisher
Generate random mock data like strings, numbers, names, colors, and dates in Dart.
WASM-ready
What it does
Provides functions to generate various types of random data including integers, strings, colors, dates, names, UUIDs, URLs, IPv4/IPv6 addresses, and geographic locations. Useful for testing and seeding mock datasets.
AI-written summary of version 2.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to quickly generate mock data or random values for tests
- You are populating prototype apps with placeholder names, locations, and colors
Skip it when
- You need cryptographically secure random values
- You need complex relational fake data generation like a full ORM faker
Strengths
- Wide variety of built-in generators like UUIDs, IP addresses, and locations
- Easy to use with simple standalone functions
- No external dependencies
Weaknesses
- Limited to the specific types of mock data implemented by the library
- Not documented
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
not documented
import 'package:mock_data/mock_data.dart';
main() {
mockName();
mockInteger(1, 6);
mockString(16);
}