VCardExtra class

A vCard property not modeled natively by Contact (e.g. an app-specific X- extension like X-MYAPP-FAVORITE-COLOR).

Populated by FlutterContacts.vCard.import for every property the parser doesn't recognize, and written back out by .export. Lets apps round-trip X- extension properties through vCard without losing data.

Access via the VCardContactExtras extension on Contact:

final contact = FlutterContacts.vCard.import(vcard).first;
contact.extras.forEach(print);

contact.extras = [VCardExtra(name: 'X-MYAPP-FOO', value: 'bar')];
FlutterContacts.vCard.export(contact);

Constructors

VCardExtra({required String name, required String value, Map<String, String?> params = const {}, String? group})
const

Properties

group String?
Group prefix for grouped properties (e.g. item1 in item1.X-FOO).
final
hashCode int
The hash code for this object.
no setteroverride
name String
Property name, uppercased.
final
params Map<String, String?>
Property parameters. A null value means a bare flag (vCard 2.1 style).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
Decoded value (vCard escapes and quoted-printable already resolved).
final

Methods

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

Operators

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