JsonAppBar constructor

JsonAppBar({
  1. Map<String, dynamic> args = const {},
  2. JsonWidgetRegistry? registry,
  3. List<JsonWidgetData>? actions,
  4. IconThemeData? actionsIconTheme,
  5. bool automaticallyImplyLeading = true,
  6. Color? backgroundColor,
  7. JsonWidgetData? bottom,
  8. double bottomOpacity = 1.0,
  9. bool? centerTitle,
  10. Clip? clipBehavior,
  11. double? elevation,
  12. bool excludeHeaderSemantics = false,
  13. JsonWidgetData? flexibleSpace,
  14. bool forceMaterialTransparency = false,
  15. Color? foregroundColor,
  16. IconThemeData? iconTheme,
  17. JsonWidgetData? leading,
  18. double? leadingWidth,
  19. bool notificationPredicate(
    1. ScrollNotification
    ) = defaultScrollNotificationPredicate,
  20. bool primary = true,
  21. double? scrolledUnderElevation,
  22. Color? shadowColor,
  23. ShapeBorder? shape,
  24. Color? surfaceTintColor,
  25. SystemUiOverlayStyle? systemOverlayStyle,
  26. JsonWidgetData? title,
  27. double? titleSpacing,
  28. TextStyle? titleTextStyle,
  29. double? toolbarHeight,
  30. double toolbarOpacity = 1.0,
  31. TextStyle? toolbarTextStyle,
})

Implementation

JsonAppBar({
  Map<String, dynamic> args = const {},
  JsonWidgetRegistry? registry,
  this.actions,
  this.actionsIconTheme,
  this.automaticallyImplyLeading = true,
  this.backgroundColor,
  this.bottom,
  this.bottomOpacity = 1.0,
  this.centerTitle,
  this.clipBehavior,
  this.elevation,
  this.excludeHeaderSemantics = false,
  this.flexibleSpace,
  this.forceMaterialTransparency = false,
  this.foregroundColor,
  this.iconTheme,
  this.leading,
  this.leadingWidth,
  this.notificationPredicate = defaultScrollNotificationPredicate,
  this.primary = true,
  this.scrolledUnderElevation,
  this.shadowColor,
  this.shape,
  this.surfaceTintColor,
  this.systemOverlayStyle,
  this.title,
  this.titleSpacing,
  this.titleTextStyle,
  this.toolbarHeight,
  this.toolbarOpacity = 1.0,
  this.toolbarTextStyle,
}) : super(
        jsonWidgetArgs: JsonAppBarBuilderModel.fromDynamic(
          {
            'actions': actions,
            'actionsIconTheme': actionsIconTheme,
            'automaticallyImplyLeading': automaticallyImplyLeading,
            'backgroundColor': backgroundColor,
            'bottom': bottom,
            'bottomOpacity': bottomOpacity,
            'centerTitle': centerTitle,
            'clipBehavior': clipBehavior,
            'elevation': elevation,
            'excludeHeaderSemantics': excludeHeaderSemantics,
            'flexibleSpace': flexibleSpace,
            'forceMaterialTransparency': forceMaterialTransparency,
            'foregroundColor': foregroundColor,
            'iconTheme': iconTheme,
            'leading': leading,
            'leadingWidth': leadingWidth,
            'notificationPredicate': notificationPredicate,
            'primary': primary,
            'scrolledUnderElevation': scrolledUnderElevation,
            'shadowColor': shadowColor,
            'shape': shape,
            'surfaceTintColor': surfaceTintColor,
            'systemOverlayStyle': systemOverlayStyle,
            'title': title,
            'titleSpacing': titleSpacing,
            'titleTextStyle': titleTextStyle,
            'toolbarHeight': toolbarHeight,
            'toolbarOpacity': toolbarOpacity,
            'toolbarTextStyle': toolbarTextStyle,
            ...args,
          },
          args: args,
          registry: registry,
        ),
        jsonWidgetBuilder: () => JsonAppBarBuilder(
          args: JsonAppBarBuilderModel.fromDynamic(
            {
              'actions': actions,
              'actionsIconTheme': actionsIconTheme,
              'automaticallyImplyLeading': automaticallyImplyLeading,
              'backgroundColor': backgroundColor,
              'bottom': bottom,
              'bottomOpacity': bottomOpacity,
              'centerTitle': centerTitle,
              'clipBehavior': clipBehavior,
              'elevation': elevation,
              'excludeHeaderSemantics': excludeHeaderSemantics,
              'flexibleSpace': flexibleSpace,
              'forceMaterialTransparency': forceMaterialTransparency,
              'foregroundColor': foregroundColor,
              'iconTheme': iconTheme,
              'leading': leading,
              'leadingWidth': leadingWidth,
              'notificationPredicate': notificationPredicate,
              'primary': primary,
              'scrolledUnderElevation': scrolledUnderElevation,
              'shadowColor': shadowColor,
              'shape': shape,
              'surfaceTintColor': surfaceTintColor,
              'systemOverlayStyle': systemOverlayStyle,
              'title': title,
              'titleSpacing': titleSpacing,
              'titleTextStyle': titleTextStyle,
              'toolbarHeight': toolbarHeight,
              'toolbarOpacity': toolbarOpacity,
              'toolbarTextStyle': toolbarTextStyle,
              ...args,
            },
            args: args,
            registry: registry,
          ),
        ),
        jsonWidgetType: JsonAppBarBuilder.kType,
      );