createCupertinoWidget method
Implementation
@override
CupertinoSliverNavigationBar createCupertinoWidget(BuildContext context) {
final data = cupertino?.call(context, platform(context));
return CupertinoSliverNavigationBar(
//Common
key: data?.widgetKey ?? widgetKey,
leading: data?.leading ?? leading,
automaticallyImplyLeading:
data?.automaticallyImplyLeading ?? automaticallyImplyLeading ?? true,
backgroundColor: data?.backgroundColor ?? backgroundColor,
stretch: data?.stretch ?? stretch ?? false,
largeTitle: data?.title ?? title,
//Cupertino only
automaticallyImplyTitle: data?.automaticallyImplyTitle ?? true,
alwaysShowMiddle: data?.alwaysShowMiddle ?? true,
previousPageTitle: data?.previousPageTitle,
middle: data?.middle,
trailing: data?.trailing,
border: data?.border ?? _kDefaultNavBarBorder,
brightness: data?.brightness,
padding: data?.padding,
transitionBetweenRoutes: data?.transitionBetweenRoutes ?? true,
heroTag: data?.heroTag ?? _defaultHeroTag,
);
}