ManagedComponentMaster class final

A managed component (managed_components/{id}): its versions, what each channel offers per major, staged rollouts and blocked versions.

JSON: {"name": "Sign in", "description": "…", "category": "Accounts", "feature": "auth.signIn", "versions": {"1": {"semver": "1.0.0", "minSdk": "22.0.0", "createdAt": ms}}, "channels": {"stable": {"1": 1}, "beta": {"1": 2}}, "rollouts": [{"channel": "stable", "version": 2, "percent": 10}], "blocked": [3], "latest": 3, "updatedAt": ms}; a channel maps each major (as text) to a version number.

Annotations

Constructors

ManagedComponentMaster({required String id, String name = '', String description = '', String category = '', String feature = '', Map<int, ManagedVersionInfo> versions = const {}, Map<ManagedChannel, Map<int, int>> channels = const {}, List<ManagedRollout> rollouts = const [], Set<int> blocked = const {}, String? previewUrl, Json extra = const {}})
const

Properties

blocked → Set<int>
Versions no app may show (rolled back): skipped by resolution, and an instance whose snapshot is blocked moves to the channel's version.
final
category → String
final
channels → Map<ManagedChannel, Map<int, int>>
Channel → major → version number.
final
description → String
final
extra → Json
final
feature → String
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
latest → int
The newest version number, or 0.
no setter
name → String
final
previewUrl → String?
final
rollouts → List<ManagedRollout>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
versions → Map<int, ManagedVersionInfo>
Every version, by number.
final

Methods

newerMajor(int major, {ManagedChannel channel = ManagedChannel.stable, String projectId = '', String? sdkVersion}) → int?
The version of the newest major above major that channel offers (for "Update available"); null when there's none.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve({required int major, ManagedChannel channel = ManagedChannel.stable, String projectId = '', String? sdkVersion}) → int?
The version channel channel offers for major to project projectId on an SDK at sdkVersion: its pointer, raised by rollouts the project's bucket is in, then the newest version at or below that of the same major that isn't blocked and the SDK can run. A beta channel takes stable's too. Null when there is none.
toJson() → Json
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromJson(Object? json, {String? id}) → ManagedComponentMaster?
Null without an id.