StringKind class final
- Inheritance
- Mixed in types
Constructors
-
StringKind({int? maxLines, IntKind? lengthInUtf8, IntKind? lengthInUtf16, String? pattern, List<
String> ? examples, List<Trait> ? traits}) -
const
-
StringKind.singleLine({IntKind? lengthInUtf8, IntKind? lengthInUtf16, String? pattern, List<
Trait> ? traits}) -
const
-
StringKind.singleLineShort({String? pattern, List<
Trait> ? traits}) -
const
Properties
- dartType → Type
-
Type
T
.no setterinherited - defaultValueMirror → InstanceMirror
-
InstanceMirror for the default value.
no setterinherited
- equality → Equality
-
Equality for the kind;
no setterinherited
-
examples
→ Iterable<
String> -
Examples of instances that are valid (isValidDynamic).
no setterinherited
-
examplesThatAreInvalid
→ Iterable<
String> -
Examples of instances that are NOT valid (isValidDynamic).
no setterinherited
-
examplesWithoutValidation
→ Iterable<
String> -
Interesting examples of instances (may be valid or invalid).
no setteroverride
- hashCode → int
-
The hash code for this object.
no setteroverride
- isNullable → bool
-
Whether this kind is nullable.
no setterinherited
- isPrimitive → bool
-
Whether instances of the kind can't have references to other instances.
no setterinherited
- jsonName → String?
-
JSON identifier of the class.
finalinherited
- lengthInUtf8 → IntKind?
-
Minimum and/or maximum length when UTF-8 encoded.
final
- lengthInUtf16 → IntKind?
-
Minimum and/or maximum length when UTF-16 encoded.
final
- maxLines → int?
-
Maximum number of lines.
final
- name → String
-
Dart identifier of the class.
no setterinherited
- pattern → String?
-
Regular expression pattern.
final
- regExp → RegExp?
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
traits
→ List<
Trait> -
Traits of the kind.
finalinherited
Methods
-
asType(
Object? value) → String -
Casts
value
toT
.inherited -
checkDeclaration(
) → void -
Checks that the declaration makes sense.
inherited
-
checkInstance(
Object? value) → void -
inherited
-
checkValid(
String instance) → void -
inherited
-
checkValidDynamic(
Object? instance) → void -
Throws ArgumentError error if
instance
is not valid (isValidDynamic).inherited -
clone(
String instance) → String -
Clones the instance.
inherited
-
compare(
String left, String right) → int -
Compares two values.
inherited
-
debugString(
String instance) → String -
Constructs a string for debugging
instance
.override -
decodeJsonTree(
Object? json) → String -
Converts
json
(any JSON tree) to an instance ofT
.override -
decodeString(
String string) → String -
Decodes
string
to an instance ofT
.override -
encodeJsonTree(
String instance) → Object? -
Converts
instance
to a JSON tree.override -
encodeString(
String instance) → String -
Converts
instance
to a string.override -
isDefaultValue(
Object? instance) → bool -
Determines whether the argument is a default value of this kind.
inherited
-
isInstance(
Object? instance) → bool -
Determines whether the argument is an instance of
T
.inherited -
isInstanceOfList(
Object? instance) → bool -
Determines whether the argument is an instance of
List<T>
.inherited -
isInstanceOfSet(
Object? instance) → bool -
Determines whether the argument is an instance of
Set<T>
.inherited -
isNullableSubKind(
Kind other, {bool andNotEqual = true}) → bool -
Tells whether the argument is instance of
Kind<T>
and dartType values are different.inherited -
isSubKind(
Kind other, {bool andNotEqual = true}) → bool -
Tells whether the argument is instance of
Kind<T>
and dartType values are different.inherited -
isValid(
String instance) → bool -
Tells whether the instance is valid.
override
-
isValidDynamic(
Object? instance) → bool -
Tells whether the instance is valid.
inherited
-
memorySize(
String value) → int -
Estimates memory usage of
instance
.override -
memorySizeWith(
MemoryCounter counter, String value) → void -
Estimates memory usage with an instance of MemoryCounter.
inherited
-
newInstance(
) → String -
Constructs a new instance of the default value.
override
-
newList(
int length, {bool growable = true}) → List< String> -
Constructs a new list.
inherited
-
newListFrom(
Iterable< String> iterable, {bool growable = true}) → List<String> -
Constructs a new list from
iterable
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
permute(
String instance) → String -
Generates another instance with some deterministic function.
override
-
register(
) → void -
Registers this kind so that it will be visible in Kind.all.
inherited
-
toList(
) → Kind< List< String> > -
Constructs Kind for
List<T>
.inherited -
toNonNullable(
) → Kind< String> -
Returns a non-nullable kind.
inherited
-
toNullable(
) → Kind< String?> -
Constructs Kind for
T?
.inherited -
toPolymorphic(
) → PolymorphicKind< String> -
Constructs a PolymorphicKind for this kind.
inherited
-
toSet(
) → Kind< Set< String> > -
Constructs Kind for
Set<T>
.inherited -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
-
kindForKind
→ const ImmutableKind<
StringKind> -
Kind for
StringKind
.