Skip to content

Commit

Permalink
SidePane typedef
Browse files Browse the repository at this point in the history
create NewTabCallback
  • Loading branch information
chesnoksatan committed Jul 9, 2022
1 parent 2a3ad70 commit 3b23bff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/widgets/side_pane.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ import 'package:files/widgets/context_menu/context_menu_entry.dart';
import 'package:files/widgets/workspace.dart';
import 'package:flutter/material.dart';

typedef NewTabCallback = void Function(String);

class SidePane extends StatefulWidget {
final List<SideDestination> destinations;
final WorkspaceController workspace;
final void Function(String tabPath) onNewTab;
final NewTabCallback onNewTab;

const SidePane({
required this.destinations,
Expand Down

0 comments on commit 3b23bff

Please sign in to comment.