launchBlockExplorer method
Launch blockchain explorer for the current chain in external browser
Implementation
@override
void launchBlockExplorer() async {
if (selectedChain?.blockExplorer != null) {
final blockExplorer = selectedChain!.blockExplorer!.url;
final address = _currentSession?.address ?? '';
final explorerUrl = '$blockExplorer/address/$address';
await urlUtils.instance.launchUrl(
Uri.parse(explorerUrl),
mode: LaunchMode.externalApplication,
);
}
}