DocViewerToolbar class
Interactive Floating or Sticky Navigation Toolbar for DocxViewer and PdfViewer.
- Inheritance
-
- Object
- FlintNode
- FlintComponent
- StatefulComponent
- DocViewerToolbar
Constructors
- DocViewerToolbar({required DocViewerController controller, String? title, bool showSearch = true, bool showZoom = true, bool showToc = true, bool showReadingMode = true, DartStyle? dartStyle, String? className})
Properties
- className → String?
-
final
- controller → DocViewerController
-
final
- dartStyle → DartStyle?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isBrowser → bool
-
Whether this component is currently running in a browser JS runtime.
no setterinherited
- isInitialized → bool
-
Whether ensureInitialized (initProps and initState) has run on this
component instance.
no setterinherited
- isServer → bool
-
Whether this component is currently running on the server (SSR / VM).
no setterinherited
- preserveState → bool
-
Whether Flint should preserve this component instance across parent
rerenders when the runtime type and tree position match.
no setterinherited
- props ↔ dynamic
-
Strongly-typed props passed to this component.
covariantgetter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
final
- showReadingMode → bool
-
final
- showSearch → bool
-
final
- showToc → bool
-
final
- showZoom → bool
-
final
- title → String?
-
final
Methods
-
attach(
void scheduleRender()) → void -
Attaches the render scheduler used by setState.
inherited
-
build(
) → View? -
Builds this component's renderable output.
override
-
didMount(
) → void -
Called after the component is first mounted in the browser DOM.
override
-
didUpdate(
) → void -
Called after the component updates following a rerender.
inherited
-
ensureInitialized(
) → void -
Ensures initProps and initState have executed once before build.
inherited
-
initProps(
) → void -
Universal synchronous hook called before initState and build on BOTH
the server (SSR) and the browser client.
inherited
-
initState(
) → void -
Universal synchronous lifecycle hook called once before the first build
on BOTH the server (SSR) and the browser client.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setState(
FlintStateUpdater update, {bool render = true}) → void -
Applies
updateand schedules this component to render again.inherited -
shouldUpdate(
covariant FlintComponent next) → bool -
Whether this component should rerender when it is updated from a new
instance in the parent tree.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateFrom(
covariant StatefulComponent next) → void -
Receives the next component instance when Flint preserves this instance.
inherited
-
willUnmount(
) → void -
Called before the component is removed from the tree.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited