priority property

int priority
final

The Order of the Middlewares to run.

{@tool snippet} This Middewares will be called in this order.

final middlewares = [
  SintMiddleware(priority: 2),
  SintMiddleware(priority: 5),
  SintMiddleware(priority: 4),
  SintMiddleware(priority: -8),
];

-8 => 2 => 4 => 5 {@end-tool}

Implementation

final int priority;