Channel class

Constructors

Channel({bool? disabled, String? id, String? name, String? provider})
Returns a new Channel instance.

Properties

disabled ↔ bool?
Disabled is true for a channel the org switched off at the social edge. It is still listed — this is what the org has CONNECTED, not what it can post to — but a publish never targets it, neither by name nor as part of the "every channel" default.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the social integration id a post targets. It is the exact value to put in a content item's channels list to reach this one connected account.
getter/setter pair
name ↔ String?
Name is the account label as the org connected it — the handle a human recognises. It is never an address: a publish resolves channels by ID or by Provider and never by this.
getter/setter pair
provider ↔ String?
Provider is the network behind the integration: "x", "instagram", "tiktok" and the rest of what the org connected. Naming a provider in a publish targets EVERY connected account of it, so it is the coarse handle where ID is the precise one.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

fromJson(dynamic value) → Channel?
Returns a new Channel instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Channel>
mapFromJson(dynamic json) → Map<String, Channel>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Channel>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.