canLoad property

bool canLoad

Prevent loading when the renderbox isn't attached. This prevents unneccesarily hitting an async path during load. A warmLoad would fail which then falls back to a coldLoad. Due to the async nature, any further sync calls would be blocked as we gate load with _isLoading.

Implementation

bool get canLoad => attached;