DATA VALIDATION FOR DART & FLUTTER
Describe the shape of your data. Validate it, transform it, and get clear errors when something doesn’t fit.
dart pub add acanthisOne package. Dart & Flutter.
import 'package:acanthis/acanthis.dart';
final account = object({
'name': string().min(2),
'email': string().email(),
});
final result = account.tryParse({
'name': 'Ada',
'email': 'ada@example.com',
});
print(result.success); // true
print(result.value['name']); // AdaTHE DOCUMENTATION
Build a schema, parse an input, and handle a failed check in one short guide.
02 / BUILDFrom a single email to nested objects. Find types, constraints, and examples.
03 / HANDLERead typed outcomes and field-level issues, then show the right message.
Already using Acanthis?
Live validation →JSON Schema →Migrating to 2.0 →