ContactFormService class
- Inheritance
-
- Object
- ContactService
- ContactFormService
- Implemented types
Constructors
- ContactFormService(MethodChannel channel, EventChannel events, ContactMode mode)
Properties
- channel → MethodChannel
-
finalinherited
-
contactEvents
→ Stream<
ContactEvent?> -
no setterinherited
- defaultSort ↔ ContactSortOrder
-
getter/setter pairinherited
- events → EventChannel
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAggregate → bool
-
no setterinherited
- mode → ContactMode
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addContact(
Contact contact) → Future< Contact> -
Adds the
contact
to the device contact list - returns the saved contact, so you can access theidentifier
inherited -
configureLogs(
{Level? level, LoggingHandler? onLog}) → void -
Configures logging. FlutterPhoneState uses the
logging
plugin.inherited -
deleteContact(
Contact contact) → Future< bool> -
Deletes the
contact
if it has a valid identifierinherited -
getContact(
String identifier, {bool withThumbnails = true, bool withHiResPhoto = true, bool withUnifyInfo = true}) → Future< Contact?> -
Retrieves a single contact by identifier
inherited
-
getContactImage(
Object? identifier) → Future< Uint8List?> -
inherited
-
getGroups(
) → Future< Iterable< Group> > -
Updates the
contact
if it has a valid identifierinherited -
getTotalContacts(
{String? query, bool? phoneQuery}) → Future< int?> -
inherited
-
listContacts(
{String? query, bool? phoneQuery, bool withThumbnails = true, bool withHiResPhoto = true, bool withUnifyInfo = false, int bufferSize = 20, ContactSortOrder? sortBy}) → PagingList< Contact> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openContactEditForm(
dynamic identifier) → Future< Contact?> -
Opens a native edit form for the contact with
identifier
. This can be a simple string, but you can also provide a ContactKeys instanceinherited -
openContactInsertForm(
[Contact? data]) → Future< Contact?> -
Opens a native insert form with
data
preloadedinherited -
streamContacts(
{String? query, bool? phoneQuery, bool withThumbnails = true, bool withHiResPhoto = true, bool withUnifyInfo = false, int bufferSize = 20, ContactSortOrder? sortBy}) → Stream< Contact> -
Fetches all contacts, or when specified, the contacts with a name
matching
query
. The stream terminates once the items are all iterated.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
updateContact(
Contact contact) → Future< Contact> -
Updates the
contact
if it has a valid identifierinherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited