widget method

Widget widget(
  1. BuildContext context
)
override

Implementation

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

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

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

        return _buildMaterial();
      },
    );

  return _buildMaterial();
}