priority property

  1. @override
int? priority
getter/setter pair

The Order of the Middlewares to run.

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

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

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

Implementation

@override
int? priority = 0;