DateTimeWithTimeZoneKind class

Kind for DateTimeWithTimeZone.

Example

import 'package:kind/kind.dart';

const example = DateTimeWithTimeZoneKind();

Generating random values

You can generate random examples with the methods randomExample() and randomExampleList().

Currently randomExample returns random values between years 1950 and 2020. This is an implementation detail that could be changed in future.

Inheritance

Constructors

DateTimeWithTimeZoneKind()
const

Properties

bitsPerListElement int
Number of bits per value or -1 if the number of bits undefined.
no setterinherited
declaredExamples List<DateTimeWithTimeZone>
Returns declared examples of this value.
no setterinherited
hashCode int
The hash code for this object.
no setteroverride
isSerializable bool
no setterinherited
name String
Name of this kind for debugging purposes.
no setteroverride
protobufFieldType int
Returns package:protobuf GeneratedMessage field type.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getKind() EntityKind<DateTimeWithTimeZoneKind>
Returns Kind of this entity.
override
instanceCast(Object? value) DateTimeWithTimeZone
Casts the value to T or throws an error.
inherited
instanceIsCorrectType(Object? value) bool
Tells whether the argument is an instance of the wanted Dart type.
inherited
instanceIsDefaultValue(Object? value) bool
Tells whether the argument is a value returned by newInstance.
inherited
instanceIsValid(Object? value) bool
A shorthand for checking validity with instanceValidate.
inherited
instanceValidate(ValidateContext context, Object? value) → void
Checks that the type is correct and then validates constraints with instanceValidateConstraints.
inherited
instanceValidateConstraints(ValidateContext context, DateTimeWithTimeZone value) → void
Validates that the argument matches constraints (minimum length, etc.).
inherited
instanceValidateOrThrow(Object? value) → void
A shorthand for calling instanceValidate with the context ValidateContext.throwing().
inherited
jsonTreeDecode(Object? json, {JsonDecodingContext? context}) DateTimeWithTimeZone
Converts the argument (a JSON tree) into an instance of T.
override
jsonTreeEncode(DateTimeWithTimeZone value, {JsonEncodingContext? context}) Object
Converts the argument into a JSON tree.
override
newInstance() DateTimeWithTimeZone
Returns new default value.
override
newList(int length, {bool growable = false, bool reactive = true}) List<DateTimeWithTimeZone>
Returns a new list of this kind, which is guaranteed some properties.
inherited
newListFrom(Iterable<DateTimeWithTimeZone> iterable, {bool growable = true, bool reactive = true}) List<DateTimeWithTimeZone>
A method similar to the list constructor List.from.
inherited
newListGenerate(int length, DateTimeWithTimeZone function(int i), {bool growable = false, bool reactive = true}) List<DateTimeWithTimeZone>
A method similar to the list constructor List.generate.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
protobufNewInstance() Object?
Constructs package:protobuf GeneratedMessage field value (e.g. bool, Int64, GeneratedMessage).
override
protobufTreeDecode(Object? value, {ProtobufDecodingContext? context}) DateTimeWithTimeZone
Converts the argument (a Protocol Buffers tree) into an instance of T.
override
protobufTreeEncode(DateTimeWithTimeZone value, {ProtobufEncodingContext? context}) Object
Converts the argument into a Protocol Buffers tree.
override
randomExample({RandomExampleContext? context}) DateTimeWithTimeZone
Generates a random example.
inherited
randomExampleList(int n, {RandomExampleContext? context}) List<DateTimeWithTimeZone>
Generates a list of N random examples (with randomExample).
inherited
toNonNullable() Kind<DateTimeWithTimeZone>
Returns a non-nullable version of this kind.
inherited
toNullable() NullableKind<DateTimeWithTimeZone>
Returns a nullable version of this kind.
inherited
toString() String
A string representation of this object.
override

Operators

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

Static Properties

kind EntityKind<DateTimeWithTimeZoneKind>
final