toWidget method

Widget toWidget()

Returns Widget that displays this surface in Flutter widget tree. Uses ValueKey to force widget recreation when textureId changes.

Implementation

Widget toWidget() => Texture(key: ValueKey(textureId), textureId: textureId);