canvasContextTypeToString function

String canvasContextTypeToString(
  1. CanvasContextType type
)

Returns the native context-type string (e.g. '2d') for the given enum.

Implementation

String canvasContextTypeToString(CanvasContextType type) =>
    _contextTypeStrings[type]!;