isServer property

bool get isServer

Whether we're running on the server.

Implementation

bool get isServer => type == RuntimeType.server || type == RuntimeType.ssg;