before method

  1. @override
Future<Action?> before(
  1. Action action
)
override

Called before action execution

Implementation

@override
Future<Action?> before(Action action) async {
  final tenantId = getTenantId();
  if (tenantId.isEmpty) {
    throw StateError('Tenant ID is required for this action');
  }
  return action;
}