key method

Text key(
  1. Key key
)

Applies the provided key to this Text.

Implementation

Text key(Key key) => copyWith(key: key);