isApiEndpoint property

bool get isApiEndpoint

Checks if the current endpoint starts with 'api/'.

Returns a bool indicating whether the endpoint is an API endpoint.

Implementation

bool get isApiEndpoint => endpoint.startsWith('api/');