Group class

A contact group.

Groups allow users to organize contacts into collections. On Android, groups are called "labels" but we use "group" terminology for consistency across platforms.

Groups always belong to an account. On Android, account being null means the group belongs to the local device.

Constructors

Group({String? id, required String name, Account? account, int? contactCount})
const

Properties

account Account?
The account this group belongs to.
final
contactCount int?
The number of contacts in this group.
final
hashCode int
The hash code for this object.
no setterinherited
id String?
The stable identifier for this group.
final
name String
The display name of the group.
final
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.
inherited

Operators

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

Static Methods

fromJson(Map json) Group