isDemoCredentials function

bool isDemoCredentials(
  1. String username,
  2. String password
)

Whether the given credentials should trigger demo mode.

Only the username is checked — any password is accepted for the demo account (see demoUsername).

Implementation

bool isDemoCredentials(String username, String password) =>
    username == demoUsername;