valueOf static method

Byte valueOf(
  1. int value
)

Returns a Byte instance representing the specified int value.

This is equivalent to calling Byte(value) but follows Java naming conventions.

Example:

final b1 = Byte.valueOf(42);
final b2 = Byte.valueOf(-100);

Implementation

static Byte valueOf(int value) => Byte(value);