isHtmx property
bool
get
isHtmx
Whether htmx sent the request (HX-Request: true).
Implementation
bool get isHtmx => header('hx-request') == 'true';
Whether htmx sent the request (HX-Request: true).
bool get isHtmx => header('hx-request') == 'true';