WorldMapBySpritefusion constructor

WorldMapBySpritefusion(
  1. WorldMapReader<SpritefusionMap> reader, {
  2. ValueChanged<Object>? onError,
  3. double sizeToUpdate = 0,
  4. Map<String, SpritefusionObjectBuilder>? objectsBuilder,
})

Implementation

WorldMapBySpritefusion(
  WorldMapReader<SpritefusionMap> reader, {
  ValueChanged<Object>? onError,
  double sizeToUpdate = 0,
  Map<String, SpritefusionObjectBuilder>? objectsBuilder,
}) : super(const []) {
  this.sizeToUpdate = sizeToUpdate;
  _builder = SpritefusionWorldBuilder(
    reader,
    onError: onError,
    sizeToUpdate: sizeToUpdate,
    objectsBuilder: objectsBuilder,
  );
}