Preset.fromToken constructor

Preset.fromToken(
  1. String token, {
  2. String? name,
})

Implementation

factory Preset.fromToken(String token, {String? name}) => Preset(
      token: token,
      name: name ?? '',
    );