features method

Future<List<Map>> features(
  1. String type,
  2. String part
)

Implementation

Future<List<Map>> features(String type, String part) async {
  List<Map> list = [];
  String key = type == mention ? "did" : "uri";
  String value = type == mention ? await plugin.did(part) : part;
  Map map = {key: value, "\$type": type};
  list.add(map);
  return list;
}