buildLink method

  1. @override
Future<String?> buildLink(
  1. String url
)
override

Implementation

@override
Future<String?> buildLink(String url) async {
  String parsedUrl =
      "twitter://user/?screen_name=${Uri.parse(url).pathSegments.lastWhere((item) => item.isNotEmpty)}";
  return parsedUrl;
}