platform/packages/validate/lib/angel3_validate.dart
2021-05-14 19:47:44 +08:00

14 lines
428 B
Dart

/// Cross-platform validation library based on `matcher`.
library angel3_validate;
export 'package:matcher/matcher.dart';
export 'src/context_aware.dart';
export 'src/matchers.dart';
export 'src/validator.dart';
/// Marks a field name as required.
String requireField(String field) => '$field*';
/// Marks multiple fields as required.
String requireFields(Iterable<String> fields) =>
fields.map(requireField).join(', ');