widget method

Widget widget(
  1. BuildContext context
)
override

Implementation

widget(context) {
  if (cupertino) return _buildCupertinoAlert();

  if (adaptive)
    return Builder(builder: (context) {
      final platform = Theme.of(context).platform;

      if (platform == TargetPlatform.macOS || platform == TargetPlatform.iOS)
        return _buildCupertinoAlert();

      return _buildAlertDialog();
    });

  return _buildAlertDialog();
}