InviteLink class abstract
- Available extensions
- Annotations
-
- @freezed
Constructors
- InviteLink({required String id, required String code, String? sentTo, @TimestampOrNullConverter() DateTime? sentAt, @TimestampConverter() required DateTime expiresAt, @TimestampConverter() required DateTime createdAt})
-
constfactory
-
InviteLink.fromJson(Map<
String, dynamic> json) -
factory
Properties
- code → String
-
no setterinherited
-
copyWith
→ $InviteLinkCopyWith<
InviteLink> -
Create a copy of InviteLink
with the given fields replaced by the non-null parameter values.
no setterinherited
- createdAt → DateTime
-
no setterinherited
- expiresAt → DateTime
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sentAt → DateTime?
-
no setterinherited
- sentTo → String?
-
no setterinherited
- url → String
-
no setter
Methods
-
map<
TResult extends Object?> (TResult $default(_InviteLink value)) → TResult -
Available on InviteLink, provided by the InviteLinkPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_InviteLink value)?) → TResult? -
Available on InviteLink, provided by the InviteLinkPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_InviteLink value)?, {required TResult orElse()}) → TResult -
Available on InviteLink, provided by the InviteLinkPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String id, String code, String? sentTo, DateTime? sentAt, DateTime expiresAt, DateTime createdAt)?, {required TResult orElse()}) → TResult -
Available on InviteLink, provided by the InviteLinkPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this InviteLink to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String id, String code, String? sentTo, DateTime? sentAt, DateTime expiresAt, DateTime createdAt)) → TResult -
Available on InviteLink, provided by the InviteLinkPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String id, String code, String? sentTo, DateTime? sentAt, DateTime expiresAt, DateTime createdAt)?) → TResult? -
Available on InviteLink, provided by the InviteLinkPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited