HttpSession class

Implemented types

Constructors

HttpSession()

Properties

entriesIterable<MapEntry>
read-only, inherited
The map entries of this.
hashCodeint
read-only, inherited
The hash code for this object. [...]
idString
read-only
The id of the current session.
isEmptybool
read-only, inherited
Whether there is no key/value pair in the map.
isNewbool
read-only
Whether the session has not yet been sent to the client.
isNotEmptybool
read-only, inherited
Whether there is at least one key/value pair in the map.
keysIterable
read-only, inherited
The keys of this. [...]
lengthint
read-only, inherited
The number of key/value pairs in the map.
onTimeout ← void Function()
write-only
Sets a callback that will be called when the session is timed out. [...]
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.
valuesIterable
read-only, inherited
The values of this. [...]

Methods

addAll(Map other) → void
inherited
Adds all key/value pairs of other to this map. [...]
addEntries(Iterable<MapEntry> newEntries) → void
inherited
Adds all key/value pairs of newEntries to this map. [...]
cast<RK, RV>() → Map<RK, RV>
inherited
Provides a view of this map as having RK keys and RV instances, if necessary. [...]
clear() → void
inherited
Removes all entries from the map. [...]
containsKey(Object? key) → bool
inherited
Whether this map contains the given key. [...]
containsValue(Object? value) → bool
inherited
Whether this map contains the given value. [...]
destroy() → void
Destroys the session. [...]
forEach(void action(dynamic key, dynamic value)) → void
inherited
Applies action to each key/value pair of the map. [...]
map<K2, V2>(MapEntry<K2, V2> convert(dynamic key, dynamic value)) → Map<K2, V2>
inherited
Returns a new map where all entries of this map are transformed by the given convert function.
noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]
putIfAbsent(dynamic key, dynamic ifAbsent()) → dynamic
inherited
Look up the value of key, or add a new entry if it isn't there. [...]
remove(Object? key) → dynamic
inherited
Removes key and its associated value, if present, from the map. [...]
removeWhere(bool test(dynamic key, dynamic value)) → void
inherited
Removes all entries of this map that satisfy the given test.
toString() → String
inherited
A string representation of this object. [...]
update(dynamic key, dynamic update(dynamic value), {dynamic ifAbsent()}) → dynamic
inherited
Updates the value for the provided key. [...]
updateAll(dynamic update(dynamic key, dynamic value)) → void
inherited
Updates all values. [...]

Operators

operator ==(Object other) → bool
inherited
The equality operator. [...]
operator [](Object? key) → dynamic
inherited
The value for the given key, or null if key is not in the map. [...]
operator []=(dynamic key, dynamic value) → void
inherited
Associates the key with the given value. [...]

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-io/HttpSession-class.html