widget method
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();
}