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 #

IGNORE = const Action._('IGNORE')

const PROXY #

PROXY = const Action._('PROXY')

const RETURN #

RETURN = const Action._('RETURN')

const THROW #

THROW = const Action._('THROW')

Properties

final String name #

name