isInitialized property

bool get isInitialized

Returns true if the model has been successfully loaded via loadModel, false otherwise. This can be used to check if the model is ready before calling predict to avoid catching ModelNotLoadedException.

Implementation

bool get isInitialized => _isInitialized;