Bundle class
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
clear ()
→ void
Removes all elements from the mapping of this Bundle.
containsKey (String key )
→ bool
Returns true if the given key is contained in the mapping
of this Bundle.
get (String key )
→ dynamic
Returns the entry with the given key as an object.
getBoolean (String key , {bool defaultValue = false })
→ bool
Returns the value associated with the given key, or defaultValue if
no mapping of the desired type exists for the given key.
getBooleanArray (String key )
→ List <bool > ?
Returns the value associated with the given key, or null if
no mapping of the desired type exists for the given key or a null
value is explicitly associated with the key.
getBooleanList (String key )
→ List <bool > ?
getBundle (String key )
→ Bundle ?
getDouble (String key , {double defaultValue = 0.0 })
→ double
Returns the value associated with the given key, or defaultValue if
no mapping of the desired type exists for the given key.
getDoubleArray (String key )
→ List <double > ?
getDoubleList (String key )
→ List <double > ?
getFloat (String key , {double defaultValue = 0.0 })
→ double
getFloatArray (String key )
→ List <double > ?
Returns the value associated with the given key, or null if
no mapping of the desired type exists for the given key or a null
value is explicitly associated with the key.
getInt (String key , {int defaultValue = 0 })
→ int
Returns the value associated with the given key, or defaultValue if
no mapping of the desired type exists for the given key.
getIntArray (String key )
→ List <int > ?
getIntegerArrayList (String key )
→ List <int > ?
Returns the value associated with the given key, or null if
no mapping of the desired type exists for the given key or a null
value is explicitly associated with the key.
getIntegerList (String key )
→ List <int > ?
getIntList (String key )
→ List <int > ?
getString (String key , {String ? defaultValue })
→ String ?
Returns the value associated with the given key, or defaultValue if
no mapping of the desired type exists for the given key or if a null
value is explicitly associated with the given key.
getStringArray (String key )
→ List <String > ?
getStringArrayList (String key )
→ List <String > ?
Returns the value associated with the given key, or null if
no mapping of the desired type exists for the given key or a null
value is explicitly associated with the key.
getStringList (String key )
→ List <String > ?
isEmpty ()
→ bool
Returns true if the mapping of this Bundle is empty, false otherwise.
keySet ()
→ Set <String >
Returns a Set containing the Strings used as keys in this Bundle.
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
putAll (Map <String , dynamic > map )
→ void
Inserts all mappings from the given Map into this BaseBundle.
putBoolean (String key , bool value )
→ void
Inserts a Boolean value into the mapping of this Bundle, replacing
any existing value for the given key. Either key or value may be null.
putBooleanArray (String key , List <bool > value )
→ void
Inserts a boolean array value into the mapping of this Bundle, replacing
any existing value for the given key. Either key or value may be null.
putBooleanList (String key , List <bool > value )
→ void
putBundle (String key , Bundle ? value )
→ void
Inserts a Bundle value into the mapping of this Bundle, replacing
any existing value for the given key. Either key or value may be null.
putDouble (String key , double value )
→ void
Inserts a double value into the mapping of this Bundle, replacing
any existing value for the given key.
putDoubleArray (String key , List <double > value )
→ void
Inserts a double array value into the mapping of this Bundle, replacing
any existing value for the given key. Either key or value may be null.
putDoubleList (String key , List <double > value )
→ void
putFloat (String key , double value )
→ void
Inserts a float value into the mapping of this Bundle, replacing
any existing value for the given key.
putFloatArray (String key , List <double > value )
→ void
Inserts a float array value into the mapping of this Bundle, replacing
any existing value for the given key. Either key or value may be null.
putFloatList (String key , List <double > value )
→ void
putInt (String key , int value )
→ void
Inserts an int value into the mapping of this Bundle, replacing
any existing value for the given key.
putIntArray (String key , List <int > value )
→ void
Inserts an int array value into the mapping of this Bundle, replacing
any existing value for the given key. Either key or value may be null.
putIntegerArrayList (String key , List <int > ? value )
→ void
Inserts an ArrayList
putIntegerList (String key , List <int > ? value )
→ void
putIntList (String key , List <int > value )
→ void
putObject (String key , dynamic value )
→ void
{@hide} */
putString (String key , String ? value )
→ void
Inserts a String value into the mapping of this Bundle, replacing
any existing value for the given key. Either key or value may be null.
putStringArray (String key , List <String > value )
→ void
Inserts a String array value into the mapping of this Bundle, replacing
any existing value for the given key. Either key or value may be null.
putStringArrayList (String key , List <String > ? value )
→ void
Inserts an ArrayList
putStringList (String key , List <String > ? value )
→ void
remove (String key )
→ void
Removes any entry with the given key from the mapping of this Bundle.
size ()
→ int
Returns the number of mappings contained in this Bundle.
toMap ()
→ Map
toString ()
→ String
A string representation of this object.
inherited