flutter_contact library
Classes
- Contact
- ContactDate
- ContactEvent
- ContactFormService
- ContactKeys
- Because you can be dealing with linked contacts (unified) or individual contacts, we use this object to be able to track what sort of contact you're dealing with, and what keys can be used to find, reference, or update it.
- ContactsChangedEvent
- ContactsContract
- ContactService
- ContactSortOrder
- DateComponents
-
A flexible container for date components that provides a robust parsing/building mechanism. If the input type is known
to be a
String
,Map
orDateTime
, then use the corresponding constructors. [...] - FormsContract
- Group
- Group class used for contact groups or labels
- Item
- Item class used for contact fields which only have a label and a value, such as emails and phone numbers
-
PagingList<
T> -
PagingStream<
T> - A stream that pages through results
- PhoneNumber
- PostalAddress
- TimeSpan
-
Represents a user-defined duration. Unlike
Duration
, this class does not normalize down to microseconds value, but preserves the original precision. - UnknownContactEvent
Extensions
Constants
- kday → const String
-
'day'
- kids → const String
-
'ids'
- klimit → const String
-
'limit'
- kmonth → const String
-
'month'
- koffset → const String
-
'offset'
- kphoneQuery → const String
-
'phoneQuery'
- kphotoHighResolution → const String
-
'photoHighResolution'
- kquery → const String
-
'query'
- ksortBy → const String
-
'sortBy'
- kwithThumbnails → const String
-
'withThumbnails'
- kwithUnifyInfo → const String
-
'withUnifyInfo'
- kyear → const String
-
'year'
- numberPattern → const String
-
"?:([-+]?[0-9]+(?:[.,][0-9]{0,9})?)"
- spanPattern → const String
-
"($numberPattern)([a-z]+)"
Properties
-
dateUnits
→ List<
TimeSpanUnit> -
final
-
defaultLabels
→ Map<
TimeSpanUnit, String> -
final
- durationPattern → String
-
final
- durationRegex → RegExp
-
final
- equalsChecker → DeepCollectionEquality
-
final
- flutterContactLog → Logger
-
final
-
knownSpans
→ Map<
String, TimeSpan> -
final
-
knownSpanUnits
→ Map<
String, TimeSpanUnit> -
final
-
shortLabels
→ Map<
TimeSpanUnit, String> -
final
- SingleContacts → ContactService
-
final
- spanRegex → RegExp
-
Not used for the ISO parsing, but this helps us in our parsing to find tokens like "3y"
final
-
timeUnits
→ List<
TimeSpanUnit> -
final
- UnifiedContacts → ContactFormService
-
final
Functions
-
cloneDate(
DateTime orig, {int year, int month, int day, int hour, int minute, int second, int millisecond, int microsecond}) → DateTime -
contactModeOf(
dynamic dyn) → ContactMode -
defaultPhoneNumberSanitizer(
String input) → String -
hasTime(
DateTime time) → bool -
isFuture(
DateTime time) → bool -
isPast(
DateTime time) → bool -
notNull<
T> () → bool Function(T item) -
parseDateTime(
dynamic dyn) → DateTime -
parseTimeSpans(
String query) → List< TimeSpan> -
timeSpanUnitOf(
dynamic input) → TimeSpanUnit -
tryParseTimeSpanUnit(
dynamic input) → List< TimeSpanUnit> -
withoutTime(
DateTime time) → DateTime
Enums
Typedefs
-
PageGenerator<
T> (int limit, int offset) → FutureOr< List< T> > -
PhoneNumberSanitizer(
String) → String -
TimeSpanValue(
TimeSpan span) → num