at_contact 1.0.0+2 copy "at_contact: ^1.0.0+2" to clipboard
at_contact: ^1.0.0+2 copied to clipboard

outdated

A starting point for Dart libraries or applications.

Now for a little internet optimism #

at_contact #

A library for Dart developers.

Installation: #

To use this library in your app, first add it to your pubspec.yaml

dependencies:
  at_contact: ^1.0.0

Add to your project #

pub get 

Import in your application code #

import 'package:at_contact/at_contact.dart';

Usage #

var atSign = '@alice';
var atContact = await AtContactsImpl.getInstance(atSign);
    // set contact details
    contact = AtContact(atSign: atSign,
      personas: ['finance_persona', 'health_persona'],);
//add contact
var result = await atContact.add(contact);
//update contact
contact.type = ContactType.Institute;
result = await atContact.update(contact);
//get contact by atSign
var contact = await atContact.get(atSign);
//Get all active contacts
var contactList = await atContact.listActiveContacts();
// Block contact
contact.blocked = true;
var updateResult = await atContact.update(contact);
// Get all blocked contacts
var blockedContacts = await atContact.listBlockedContacts();
10
likes
0
pub points
68%
popularity

Publisher

verified publisheratsign.org

A starting point for Dart libraries or applications.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

at_client, at_commons, at_utils, intl, uuid

More

Packages that depend on at_contact