tryStatement abstract method

TryStatement tryStatement(
  1. Token tryKeyword,
  2. Block body,
  3. List<CatchClause> catchClauses,
  4. Token? finallyKeyword,
  5. Block? finallyBlock,
)

Returns a newly created try statement. The list of catchClauses can be null if there are no catch clauses. The finallyKeyword and finallyBlock can be null if there is no finally clause.

Implementation

TryStatement tryStatement(
    Token tryKeyword,
    Block body,
    List<CatchClause> catchClauses,
    Token? finallyKeyword,
    Block? finallyBlock);