mirrored_repositories/FlutterEbookApp/packages/iridium/components/navigator/lib/src/epub
import 'package:flutter/widgets.dart';
import 'package:mno_navigator/epub.dart';
import 'package:mno_navigator/src/publication/reader_context.dart';

abstract class SelectionListenerFactory {
  SelectionListener create(ReaderContext readerContext, BuildContext context);
}

class SimpleSelectionListenerFactory extends SelectionListenerFactory {
  final State state;

  SimpleSelectionListenerFactory(this.state);

  @override
  SelectionListener create(ReaderContext readerContext, BuildContext context) =>
      SimpleSelectionListener(state, readerContext, context);
}
