PlatformWebStorageCreationParams class

Object specifying creation parameters for creating a PlatformWebStorage.

Platform specific implementations can add additional fields by extending this class. Object specifying creation parameters for creating a PlatformWebStorage.

Platform specific implementations can add additional fields by extending this class.

Annotations
  • @SupportedPlatforms.new(platforms: [AndroidPlatform(), IOSPlatform(), MacOSPlatform(), WebPlatform(), WindowsPlatform(), LinuxPlatform()])
  • @immutable

Constructors

PlatformWebStorageCreationParams({required PlatformLocalStorage localStorage, required PlatformSessionStorage sessionStorage})
Used by the platform implementation to create a new PlatformWebStorage.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
localStorage PlatformLocalStorage
Represents window.localStorage.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessionStorage PlatformSessionStorage
Represents window.sessionStorage.
final

Methods

isClassSupported({TargetPlatform? platform}) bool
Check if the current class is supported by the defaultTargetPlatform or a specific platform.
isPropertySupported(PlatformWebStorageCreationParamsProperty property, {TargetPlatform? platform}) bool
Check if the given property is supported by the defaultTargetPlatform or a specific platform.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited