FusionChartsSource.fromIsLocal constructor
FusionChartsSource.fromIsLocal(
- bool isLocal
Maps the legacy isLocal flag onto a source.
isLocal: true selects the asset source. isLocal: false requested the
removed CDN mode, so it throws rather than reaching the network; the
widget converts that into a structured onError callback with migration
guidance. Retained only for source compatibility.
Implementation
factory FusionChartsSource.fromIsLocal(bool isLocal) {
if (!isLocal) {
throw FusionChartsSourceError(unsupportedIsLocalFalseMessage);
}
return FusionChartsSource.asset();
}