RequiresApiOrThrows class

Annotation that indicates that some method requires a certain Android API level to work correctly.

If API level is lower than required, the annotated API will will throw.

See also:

Constructors

RequiresApiOrThrows(int apiLevel)
Creates RequiresApiOrThrows.
const

Properties

apiLevel int
Required API level.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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