readable<T> static method

ReadableBeacon<T> readable<T>(
  1. T initialValue
)

Creates a ReadableBeacon with an initial value. This beacon allows only reading the value.

Example:

var myBeacon = Beacon.readable(15);
print(myBeacon.value); // Outputs: 15

Implementation

static ReadableBeacon<T> readable<T>(T initialValue) =>
    ReadableBeacon<T>(initialValue);