getIdentifier method

  1. @override
Future<String?> getIdentifier()
override

Returns a String containing (on web) the browser user agent, as no real device identifier exists.

Implementation

@override
Future<String?> getIdentifier() async {
  final version = html.window.navigator.userAgent;
  return version;
}