describe method

  1. @override
String describe(
  1. int pixel
)
inherited

Returns a human-readable description of the pixel.

This is used in the default implementation of Buffer.toString.

It is preferred that the result values are padded to a fixed width, and that the result is a single line; for example, 0x12345678 or [0.1, 0.2, 0.3, 0.4].

Implementation

@override
String describe(int pixel) {
  return '0x${pixel.toRadixString(16).padLeft(max.bitLength ~/ 4, '0')}';
}