RequiresApiOr 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 do what is specified in the message.

See also:

Constructors

RequiresApiOr(int apiLevel, String message)
Creates RequiresApiOr.
const

Properties

apiLevel int
Required API level.
final
hashCode int
The hash code for this object.
no setterinherited
message String
What this method will do on lower API versions.
final
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