valueFromQueryGroup method

  1. @override
DeviceFrameConfig valueFromQueryGroup(
  1. Map<String, String> group
)
override

Converts a query group to a value of type T.

Implementation

@override
DeviceFrameConfig valueFromQueryGroup(Map<String, String> group) {
  return DeviceFrameConfig(
    device: valueOf<DeviceInfo>('name', group)!,
    orientation: valueOf<Orientation>('orientation', group)!,
    hasFrame: valueOf<bool>('frame', group)!,
  );
}