MeCard class

MeCard is a data file similar to vCard but used by NTT DoCoMo in Japan in QR code format for use with Cellular Phones.

Example: MECARD:N:Doe,John;TEL:13035551212;EMAIL:john.doe@example.com;;

https://en.wikipedia.org/wiki/MeCard_(QR_code)

This object is a representation of the 2.1 version.

Constructors

MeCard.new({required String name, String? lastName, String? nickname, String? organization, String? role, List<String>? telephones, List<String>? videophones, List<String>? emails, List<String>? addresses, List<String>? urls, DateTime? birthday, List<MeCardSocialProfile>? socialProfiles, String? note})
Default constructor. Only name is required.
MeCard.fromPlainText(String plainText, {bool checkSemicolons = true})
Constructor from the plain text of the MeCard.
factory

Properties

addresses List<String>?
List of contact addresses.
final
birthday DateTime?
8 digits for date of birth: year (4 digits), month (2 digits) and day (2 digits), in order.
final
emails List<String>?
List of contact emails.
final
hashCode int
The hash code for this object.
no setterinherited
lastName String?
A structured representation of the name of the person. When a field is divided by a comma (,), the first half is treated as the last name and the second half is treated as the first name.
final
name String
A structured representation of the name of the person. When a field is divided by a comma (,), the first half is treated as the last name and the second half is treated as the first name.
final
nickname String?
Familiar name for the object represented by this MeCard.
final
note String?
Specifies supplemental information to be set as memo in the phonebook.
final
organization String?
The name of the contact organization.
final
role String?
Job title of contact.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
socialProfiles List<MeCardSocialProfile>?
List of contact Social Profiles.
final
telephones List<String>?
List of contact telephone numbers.
final
urls List<String>?
List of contact URLs.
final
videophones List<String>?
List of contact telephone numbers.
final

Methods

copyWith({String? name, String? lastName, String? nickname, String? organization, String? role, List<String>? telephones, List<String>? videophones, List<String>? emails, List<String>? addresses, List<String>? urls, DateTime? birthday, List<MeCardSocialProfile>? socialProfiles, String? note}) MeCard
Creates a copy of this MeCard but with the given fields replaced with the new values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toPlainText() String
A plain text representation of the MeCard.
toString() String
A string representation of this object.
override

Operators

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