getUserName method

Future<String> getUserName({
  1. bool needAlias = true,
})

Implementation

Future<String> getUserName({bool needAlias = true}) async {
  return getIt<ContactProvider>().getContact(this).then((value) {
    if (value != null) {
      return value.getName(needAlias: needAlias);
    } else {
      return this;
    }
  });
}