DATA VALIDATION FOR DART & FLUTTER
Define a schema. Parse typed values, transform input, and get structured issues when validation fails.
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.isValid); // true
if (result is AcanthisValid<Map<String, Object?>>) {
print(result.value['name']); // Ada
}
FROM INPUT TO CONFIDENCE
Give your data a shape. Get validated values or an issue that points to what needs fixing.
01 / DESCRIBE02 / CHECK03 / USE WITH CONFIDENCE
MEET ACANTHIS 2.0
Keep validation close to the field. Live sessions track edits, async checks, and useful errors as your data changes.
Explore live validation/account/emailThis field is ready to use.
Illustrative preview with a simulated async check.
THE DOCUMENTATION
Already using Acanthis?
Live validation →JSON Schema →Migrating to 2.0 →