toTargetPlatform method

TargetPlatform toTargetPlatform(
  1. BuildContext context
)

Implementation

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