OudsTopBarActionConfig.widget constructor

OudsTopBarActionConfig.widget({
  1. required Widget widget,
  2. VoidCallback? onActionPressed,
  3. String? contentDescription,
})

Creates a configuration that displays a custom, developer-defined widget.

Implementation

factory OudsTopBarActionConfig.widget({
  required Widget widget,
  VoidCallback? onActionPressed,
  String? contentDescription,
}) {
  return OudsTopBarActionConfig._(
    type: OudsTopBarActionType.widget,
    widget: widget,
    onActionPressed: onActionPressed,
    contentDescription: contentDescription,
  );
}