import 'package:luthor/luthor.dart'; void main() { final validator = l.string().emoji(); print(validator.validateValue('đ'));}
import 'package:luthor/luthor.dart';import 'package:freezed_annotation/freezed_annotation.dart'; part 'emoji.freezed.dart';part 'emoji.g.dart'; @freezed@luthorclass EmojiSchema extends _$EmojiSchema { const factory EmojiSchema({ required String value, }) = _$EmojiSchema; static SchemaValidationResult<EmojiSchema> validate( Map<String, dynamic> json, ) => _$EmojiSchemaValidate(json); factory EmojiSchema.fromJson(Map<String, dynamic> json) => _$EmojiSchemaFromJson(json);} void main() { print(EmojiSchema.validate({'value': 'đ'}));}