Dart Documentationangular.mockMockProgressEvent

MockProgressEvent class

class MockProgressEvent implements ProgressEvent {
 final bool bubbles = false;
 final bool cancelable = false;
 final DataTransfer clipboardData = null;
 final EventTarget currentTarget;
 final bool defaultPrevented = false;
 final int eventPhase = 0;
 final bool lengthComputable = false;
 final int loaded = 0;
 final List<Node> path = null;
 final int position = 0;
 final Type runtimeType = null;
 final EventTarget target = null;
 final int timeStamp = 0;
 final int total = 0;
 final int totalSize = 0;
 final String type = null;

 bool cancelBubble = false;

 MockProgressEvent(MockHttpRequest this.currentTarget);

 void preventDefault() {}
 void stopImmediatePropagation() {}
 void stopPropagation() {}
}

Implements

ProgressEvent

Constructors

new MockProgressEvent(MockHttpRequest currentTarget) #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
MockProgressEvent(MockHttpRequest this.currentTarget);

Properties

final bool bubbles #

final bool bubbles = false

final bool cancelable #

final bool cancelable = false

bool cancelBubble #

bool cancelBubble = false

final DataTransfer clipboardData #

final DataTransfer clipboardData = null

final EventTarget currentTarget #

final EventTarget currentTarget

final bool defaultPrevented #

final bool defaultPrevented = false

final int eventPhase #

final int eventPhase = 0

final int hashCode #

inherited from Interceptor

Get a hash code for this object.

All objects have hash codes. Hash codes are guaranteed to be the same for objects that are equal when compared using the equality operator ==. Other than that there are no guarantees about the hash codes. They will not be consistent between runs and there are no distribution guarantees.

If a subclass overrides hashCode it should override the equality operator as well to maintain consistency.

docs inherited from Object
int get hashCode => Primitives.objectHashCode(this);

final bool lengthComputable #

final bool lengthComputable = false

final int loaded #

final int loaded = 0

final List<Node> path #

final List<Node> path = null

final int position #

final int position = 0

final Type runtimeType #

A representation of the runtime type of the object.

docs inherited from Object
final Type runtimeType = null

final EventTarget target #

final EventTarget target = null

final int timeStamp #

final int timeStamp = 0

final int total #

final int total = 0

final int totalSize #

final int totalSize = 0

final String type #

final String type = null

Operators

bool operator ==(other) #

inherited from Interceptor

The equality operator.

The default behavior for all Objects is to return true if and only if this and other are the same object.

Override this method to specify a different equality relation on a class. The overriding method must still be an equivalence relation. That is, it must be:

  • Total: It must return a boolean for all arguments. It should never throw or return null.

  • Reflexive: For all objects o, o == o must be true.

  • Symmetric: For all objects o1 and o2, o1 == o2 and o2 == o1 must either both be true, or both be false.

  • Transitive: For all objects o1, o2, and o3, if o1 == o2 and o2 == o3 are true, then o1 == o3 must be true.

The method should also be consistent over time, so equality of two objects should not change over time, or at least only change if one of the objects was modified.

If a subclass overrides the equality operator it should override the hashCode method as well to maintain consistency.

docs inherited from Object
bool operator ==(other) => identical(this, other);

Methods

dynamic noSuchMethod(Invocation invocation) #

inherited from Interceptor

noSuchMethod is invoked when users invoke a non-existant method on an object. The name of the method and the arguments of the invocation are passed to noSuchMethod in an Invocation. If noSuchMethod returns a value, that value becomes the result of the original invocation.

The default behavior of noSuchMethod is to throw a noSuchMethodError.

docs inherited from Object
dynamic noSuchMethod(Invocation invocation) {
 throw new NoSuchMethodError(
     this,
     invocation.memberName,
     invocation.positionalArguments,
     invocation.namedArguments);
}

void preventDefault() #

void preventDefault() {}

void stopImmediatePropagation() #

void stopImmediatePropagation() {}

void stopPropagation() #

void stopPropagation() {}

String toString() #

inherited from Interceptor

Returns a string representation of this object.

docs inherited from Object
String toString() => Primitives.objectToString(this);