triggerUncaughtObject static method

void triggerUncaughtObject()

Throws a String object.

Implementation

static void triggerUncaughtObject() {
  // ignore: only_throw_errors
  throw 'Embrace sample: throwing a string';
}