ZFileImpl class

Inheritance

Constructors

ZFileImpl({String? message})

Properties

hashCode โ†’ int
The hash code for this object.
no setterinherited
isNullable โ†’ bool
no setterinherited
isOptional โ†’ bool
no setterinherited
isOptionalLike โ†’ bool
๐Ÿ”ฅ MUITO IMPORTANTE
no setterinherited
issues โ†’ List<ZardIssue>
The issues accumulated during the most-recent parse call. Mutable so containers (ZMap, ZList) can do issues.addAll(...).
no setterinherited
issuesInternal โ†’ List<ZardIssue>
Direct access to the parse context's issues list โ€” internal use only.
no setterinherited
runtimeType โ†’ Type
A representation of the runtime type of the object.
no setterinherited
transformsInternal โ†’ List<Transformer<File>>
no setterinherited
validatorsInternal โ†’ List<Validator<File>>
Non-allocating raw lists. Library-internal use only โ€” never expose these to consumers because they bypass the unmodifiable contract. Used by specialized schema implementations (ZInt, ZDouble, etc.) to avoid creating an List.unmodifiable wrapper per parse() call.
no setterinherited

Methods

$default(File defaultValue) โ†’ Schema<File>
A schema to define a default value for a field.
inherited
addError(ZardIssue error) โ†’ void
inherited
addTransform(Transformer<File> transform) โ†’ void
inherited
addValidator(Validator<File> validator) โ†’ void
inherited
clearErrors() โ†’ void
Resets the current parse context. Called at the start of every parse(). Uses List.clear in-place to avoid allocating a fresh context per call.
inherited
getErrors() โ†’ List<ZardIssue>
inherited
getTransforms() โ†’ List<Transformer<File>>
inherited
getValidators() โ†’ List<Validator<File>>
Public, backward-compatible accessor โ€” returns an unmodifiable view. Internal hot paths should iterate validatorsInternal / transformsInternal directly.
inherited
list({String? message}) โ†’ ZList
inherited
markRequired() โ†’ Schema
Marks this schema as required (removes optional flag).
inherited
max(int size) โ†’ ZFile
Define o tamanho mรกximo do arquivo em bytes.
inherited
mime(dynamic types) โ†’ ZFile
Define os tipos MIME permitidos.
inherited
min(int size) โ†’ ZFile
Define o tamanho mรญnimo do arquivo em bytes.
inherited
noSuchMethod(Invocation invocation) โ†’ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
nullable() โ†’ Schema<File?>
inherited
nullish() โ†’ Schema<File?>
inherited
optional() โ†’ Schema<File?>
inherited
parse(dynamic value, {String path = ''}) โ†’ File
inherited
parseAsync(dynamic value, {String path = ''}) โ†’ Future<File>
inherited
parseInto(dynamic value, String path, List<ZardIssue> sink) โ†’ File?
Internal entry point used by container schemas (ZMap, ZList, ZUnion, ZInterface, etc.) to avoid the per-field/per-item try/catch overhead of public parse. On success returns the parsed value and leaves sink unchanged. On failure appends at least one issue to sink (callers determine success by comparing sink.length before/after).
inherited
refine(bool predicate(File value), {String? message, String? path}) โ†’ Schema<File>
inherited
safeParse(dynamic value, {String path = ''}) โ†’ ZardResult<File>
inherited
safeParseAsync(dynamic value, {String path = ''}) โ†’ Future<ZardResult<File>>
inherited
toString() โ†’ String
A string representation of this object.
inherited
transform<R>(R transformer(File value)) โ†’ TransformedSchema<File, R>
inherited
transformTyped<R>(R transformer(File value)) โ†’ TransformedSchema<File, R>
inherited

Operators

operator ==(Object other) โ†’ bool
The equality operator.
inherited