ProgrammingBlocksDependency class

Inheritance

Constructors

ProgrammingBlocksDependency({Color? backgroundCanvasColor, Curve? creationPanelAnimationCurve, Duration? creationPanelAnimationDuration, Color? creationPanelBackgroundColor, double? creationPanelHeight, Widget creationPanelOpenCloseBuilder()?, Widget creationSectionButtonBuilder(BuildContext context, CreationSectionData creationSectionData, bool selected)?, double defaultFuntionSize = 2000, Duration? doubleTapAnimDuration, int dragDelay = 100, bool drawMainScope = true, bool enableFunctions = true, Color? foregroundCanvasColor, Color? functionsSectionColor, Widget functionTabsBuilder(BuildContext context, String tabName, bool selected)?, Widget? injectorChild, Key? key, String mainFunctionName = 'Main', dynamic onChangeRunningState(RunningState runningState)?, dynamic onProjectChange(ProgrammingBlocksProjectModel projectModel)?, double? opacityScrollBars, ProgrammingBlocksProjectModel? projectModel, double? radiusScrollBars, Widget runBuilder(Color? enterBlockColor)?, Color? scrollBarsColor, double? scrollBarsWeight, required List<CreationSection> sections, Widget stopBuilder()?, Widget trashBuilder(bool onBlockEnter)?})

Properties

backgroundCanvasColor → Color?
final
blockTypes → List<BlockType>
final
canvasController → CanvasController
final
child → Widget
The widget below this widget in the tree.
finalinherited
creationSectionButtonBuilder → Widget Function(BuildContext context, CreationSectionData creationSectionData, bool selected)?
final
defaultFuntionSize → double
final
doubleTapAnimDuration → Duration?
final
dragDelay → int
no setter
drawMainScope → bool
final
enableFunctions → bool
final
foregroundCanvasColor → Color?
final
functionTabsBuilder → Widget Function(BuildContext context, String tabName, bool selected)?
final
hashCode → int
The hash code for this object.
no setterinherited
injectorChild → Widget?
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mainFunctionName → String
final
onChangeRunningState → dynamic Function(RunningState runningState)?
final
onProjectChange → dynamic Function(ProgrammingBlocksProjectModel projectModel)?
final
opacityScrollBars → double?
final
panelController → CreationPanelController
final
player → AudioPlayer
final
projectModel → ProgrammingBlocksProjectModel
no setter
radiusScrollBars → double?
final
runBackupController → ProgrammingBlockRunBackupController
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scrollBarsColor → Color?
final
scrollBarsWeight → double?
final
sections → List<CreationSection>
final

Methods

addConfigurationBlockModel({required ConfigurationBlockModel configurationBlockModel}) → void
buildBlockByModel(BuildContext context, {required ProgrammingBlockModel blockModel, required bool fromCreationSection}) → Widget
colorByBlockModel({required ProgrammingBlockModel blockModel}) → Color
configurationBlockModelByUuid({required String uuid}) → ConfigurationBlockModel?
configurationBlockModelsByType({required String typeName}) → List<ConfigurationBlockModel>
createElement() → InheritedElement
Inflates this configuration to a concrete instance.
inherited
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
executeBlock({required ProgrammingBlockModel blockModel}) → Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paySound(String assetName) → void
readBlock({required ProgrammingBlockModel blockModel}) → Future
removeBlock(BuildContext context, {required ProgrammingBlockModel? blockModel, bool waitRedraw = false}) → void
removeConfigurationBlockModel({required ConfigurationBlockModel configurationBlockModel}) → void
removeFunction({required String functionUuid}) → void
restoreRunBackUp() → void
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited
typeByBlockModel({required ProgrammingBlockModel? blockModel}) → BlockType?
typeByName({required String? name}) → BlockType?
updateConfigurationBlockModel({required ConfigurationBlockModel configurationBlockModel}) → void
updateFunctionInfo({required String functionUuid, required ProgrammingBlocksDependencyCanvasModel canvasModel}) → void
updateShouldNotify(covariant ProgrammingBlocksDependency oldWidget) → bool
Whether the framework should notify widgets that inherit from this widget.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

of(BuildContext context) → ProgrammingBlocksDependency?

Constants

mainCanvasUuid → const String
noConfigUUid → const String