Dart API ReferenceunittestAction

Action Class

The ways in which a call to a mock method can be handled.

Constructors

Code const Action._(String name) #

const Action._(this.name);

Static Fields

Code final IGNORE #

Do nothing (void method)

static final IGNORE = const Action._('IGNORE');

Code final PROXY #

Call a supplied function.

static final PROXY = const Action._('PROXY');

Code final RETURN #

Return a supplied value.

static final RETURN = const Action._('RETURN');

Code final THROW #

Throw a supplied value.

static final THROW = const Action._('THROW');

Fields

Code final String name #

final String name;