ExtensionContext
The context information of the extension.
@JsonSerializable(explicitToJson: true, includeIfNull: false) class ExtensionContext { const ExtensionContext( {this.isValid, this.uid, this.providerName, this.extensionName}); @JsonKey(name: 'isValid') final bool? isValid; @JsonKey(name: 'uid') final int? uid; @JsonKey(name: 'providerName') final String? providerName; @JsonKey(name: 'extensionName') final String? extensionName; factory ExtensionContext.fromJson(Map<String, dynamic> json) => _$ExtensionContextFromJson(json); Map<String, dynamic> toJson() => _$ExtensionContextToJson(this); }
Attributes
- isValid
- Whether the uid in ExtensionContext is valid:
true
: The uid is valid.false
: The uid is invalid.
- uid
- The user ID. 0 represents a local user, while greater than 0 represents a remote user.
- providerName
- The name of the extension provider.
- extensionName
- The name of the extension.