Dart API Referencedart:coreFallThroughError

FallThroughError class

Error thrown when control reaches the end of a switch case.

The Dart specification requires this error to be thrown when control reaches the end of a switch case (except the last case of a switch) without meeting a break or similar end of the control flow.

class FallThroughError implements Error {
  const FallThroughError();
}

Implements

Error

Constructors

const FallThroughError() #

const FallThroughError();