mockalization_factory 2.0.2
mockalization_factory: ^2.0.2 copied to clipboard
Annotation-based mock data generator for Dart. Add @Mockalization to classes to auto-generate realistic fake data with nullable, collection, and format support.
2.0.2 #
- Lowered SDK constraint from
^3.9.0to^3.7.0for wider compatibility
2.0.1 #
- Shortened package description for pub.dev compliance (max 180 characters)
- Added example file for pub.dev documentation score
2.0.0 #
- BREAKING: Replaced
MockFactorymixin with extension-based API (UserMock.fake(),UserMock.fakeList()) - BREAKING: Replaced
MockFormatTypewithMockFormatenum (33 formats) - BREAKING: Replaced
MockProperty.formatTypewithMockProperty.format - Added nullable type support with configurable
nullProbability - Added
MockProperty.valuesfor random selection from a list - Added
MockProperty.minLengthandMockProperty.maxLength - Added
MockFormatenum with 33 formats: email, fullName, phoneNumber, url, uuid, and more - Added
mockChance()andmockDouble()runtime helpers - Re-exported
Fakerclass for convenience - Removed Flutter SDK dependency (now a pure Dart package)
1.0.0 #
- Initial release
@Mockalization()class annotation@MockProperty()field annotation withlength,max,min,value,formatType@MockIgnore()field annotationMockFactory<T>mixin withgenerateFake()andgenerateFakeList()