toTargetPlatform method
Implementation
TargetPlatform toTargetPlatform(BuildContext context) => switch (this) {
DateTimeFieldPickerPlatform.material => TargetPlatform.android,
DateTimeFieldPickerPlatform.cupertino => TargetPlatform.iOS,
DateTimeFieldPickerPlatform.adaptive => Theme.of(context).platform,
};