INNER CODE UNIT · Dart

CalendarControllerProvider

SimformSolutionsPvtLtd/flutter_calendar_view · lib/src/calendar_controller_provider.dart:5

class CalendarControllerProvider<T extends Object?> extends InheritedWidget {
  /// Event controller for Calendar views.
  final EventController<T> controller;

  /// This will provide controller to its subtree.
  /// If controller argument is not provided in calendar views then
  /// controller from this class will be considered.
  ///
  /// Use this widget to provide same controller object to all calendar
  /// view widgets and synchronize events between them.
  const CalendarControllerProvider({
    Key? key,
    required this.controller,
    required Widget child,
  }) : super(key: key, child: child);

  static CalendarControllerProvider<T> of<T extends Object?>(
      BuildContext context) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…