Key constructor Null safety

const Key(
  1. String value
)

Construct a ValueKey<String> with the given String.

This is the simplest way to create keys.

Implementation

const factory Key(String value) = ValueKey<String>;