setFontCallback method
Call callback
when the font is ready. Set notifyAlreadySet
to
specify if you want to be called if the font is already set.
Implementation
bool setFontCallback(
VoidCallback callback, {
bool notifyAlreadySet = true,
}) {
if (font != null) {
if (notifyAlreadySet) {
callback();
}
return true;
}
_callbacks.add(callback);
return false;
}