Dart DocumentationmockAction

Action class

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

class Action {
 /** Do nothing (void method) */
 static const IGNORE = const Action._('IGNORE');

 /** Return a supplied value. */
 static const RETURN = const Action._('RETURN');

 /** Throw a supplied value. */
 static const THROW = const Action._('THROW');

 /** Call a supplied function. */
 static const PROXY = const Action._('PROXY');

 const Action._(this.name);

 final String name;
}

Static Properties

const IGNORE #

Do nothing (void method)

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

const PROXY #

Call a supplied function.

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

const RETURN #

Return a supplied value.

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

const THROW #

Throw a supplied value.

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

Properties

final String name #

final String name