BoolSpec class final

Specification for boolean types.

Inheritance

Constructors

BoolSpec({bool? defaultValue, String? description, bool nullable = false, List<Object>? examples, bool isDeprecated = false})
Creates a new BoolSpec.
const

Properties

defaultValue bool?
Default value.
final
description String?
Optional description of this type.
finalinherited
examples List<Object>?
Example values for documentation.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
isDeprecated bool
Whether this type is deprecated.
finalinherited
nullable bool
Whether this type accepts null values.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

asNullable() BoolSpec
Creates a copy of this spec with nullable set to true.
override
copyWith({bool? defaultValue, String? description, bool? nullable, List<Object>? examples, bool? isDeprecated}) BoolSpec
Creates a copy with the given modifications.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
withDescription(String description) BoolSpec
Creates a copy of this spec with the given description.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited