TypedExtra class

This class holds some constant strings for user accessibility, so that end users don't need to hardcode type information in updated Intent.putExtra(String extra, dynamic data, {String type}) method which aims to facilitate better type handling for Intent data.

Prior to it, all extra passed to Intent, were getting type casted to String, which was bad implementation - trying to improve that

This won't break any existing codebase

Constructors

TypedExtra()

Properties

hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

booleanExtra → const String
singular type information
"boolean"
booleanListExtra → const String
collection types from aforementioned types
"boolean[]"
byteExtra → const String
"byte"
byteListExtra → const String
"byte[]"
charExtra → const String
"char"
charListExtra → const String
"char[]"
doubleExtra → const String
"double"
doubleListExtra → const String
"double[]"
floatExtra → const String
"float"
floatListExtra → const String
"float[]"
intExtra → const String
"int"
intListExtra → const String
"int[]"
longExtra → const String
"long"
longListExtra → const String
"long[]"
shortExtra → const String
"short"
shortListExtra → const String
"short[]"
stringExtra → const String
"String"
stringListExtra → const String
"String[]"