at_contact | A library for Dart Developers

A library for Dart developers.


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

  at_contact: ^1.0.0

Add to your project

pub get 

Import in your application code

import 'package:at_contact/at_contact.dart';


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();


Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add at_contact

With Flutter:

 $ flutter pub add at_contact

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

  at_contact: ^2.0.3

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:at_contact/at_contact.dart';

Download Details:

Author: atsign-foundation

Official Website: 


13.05 GEEK