AdError class Null safety

Constructors

AdError({required int? code, required String? message})
Creates a new AdError instance
const

Properties

code int?
Gets the error code. Possible error codes:
final
hashCode int
The hash code for this object.
read-only, inherited
message String?
Gets an error message. For example "Account not approved yet". See this for explanations of common errors
final
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.
override

Operators

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

Static Methods

fromJson(dynamic json) AdError
Retrieve an AdError from a json

Constants

timeoutError → const AdError
AdError(code: -1, message: 'Timeout achieved')