GithubCopilotSessionLogModelPatterns extension
Adds pattern-matching-related methods to GithubCopilotSessionLogModel.
Methods
-
map<
TResult extends Object?> (TResult $default(_GithubCopilotSessionLogModel value)) → TResult -
Available on GithubCopilotSessionLogModel, provided by the GithubCopilotSessionLogModelPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_GithubCopilotSessionLogModel value)?) → TResult? -
Available on GithubCopilotSessionLogModel, provided by the GithubCopilotSessionLogModelPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_GithubCopilotSessionLogModel value)?, {required TResult orElse()}) → TResult -
Available on GithubCopilotSessionLogModel, provided by the GithubCopilotSessionLogModelPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String id, String sessionId, String message, Map< String, dynamic> ? metadata, String? toolName, String? toolResult, GithubCopilotSessionLogLevel level, ModelTimestamp timestamp, bool fromServer)?, {required TResult orElse()}) → TResult -
Available on GithubCopilotSessionLogModel, provided by the GithubCopilotSessionLogModelPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
when<
TResult extends Object?> (TResult $default(String id, String sessionId, String message, Map< String, dynamic> ? metadata, String? toolName, String? toolResult, GithubCopilotSessionLogLevel level, ModelTimestamp timestamp, bool fromServer)) → TResult -
Available on GithubCopilotSessionLogModel, provided by the GithubCopilotSessionLogModelPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String id, String sessionId, String message, Map< String, dynamic> ? metadata, String? toolName, String? toolResult, GithubCopilotSessionLogLevel level, ModelTimestamp timestamp, bool fromServer)?) → TResult? -
Available on GithubCopilotSessionLogModel, provided by the GithubCopilotSessionLogModelPatterns extension
A variant ofwhenthat fallback to returningnull