serialize method

  1. @override
Map<String, Object> serialize()
override

Serializes the tile widget to translatable tile widget to be handled by android.

Implementation

@override
Map<String, Object> serialize() => {
      "type": "__sizedbox",
      if (height != null) "height": height!,
      if (width != null) "width": width!,
      if (child != null) "child": child!.serialize(),
    };