webln property
dynamic
webln
Before you start using any of the FlutterWebln methods you need to check for browser support by checking if the variable is defined or not as:
final weblnValue = weblnDecode(FlutterWebln.webln);
if (weblnValue.isEmpty) {
isWallet = false;
} else {
isWallet = true;
}
weblnValue.isEmpty
indicates that the WebLN provider
is not installed and the user can't use any of the FlutterWebln methods.
Implementation
static get webln => WeblnInstance.webln;