length method
Returns an integer representing the number of data items stored in the Storage object.
Implementation
Future<int?> length() async {
var result = await _controller.evaluateJavascript(source: """
window.$webStorageType.length;
""");
return result != null ? int.parse(json.decode(result)) : null;
}