UpCode class

Inheritance

Constructors

UpCode({Key? key, String? code, UpStyle? style, UpColorType? colorType, String? assetCode, double height = 256, EdgeInsetsGeometry padding = const EdgeInsets.only(top: 12), Color? backgroundColor, String language = 'dart', bool showViewToggle = false, Map<String, TextStyle> theme = const {'root' : TextStyle(backgroundColor: Colors.transparent, color: Color(0xff272822)), 'tag' : TextStyle(color: Color(0xfff92672)), 'keyword' : TextStyle(color: Color(0xfff92672), fontWeight: FontWeight.bold), 'selector-tag' : TextStyle(color: Color(0xfff92672), fontWeight: FontWeight.bold), 'literal' : TextStyle(color: Color(0xfff92672), fontWeight: FontWeight.bold), 'strong' : TextStyle(color: Color(0xfff92672)), 'name' : TextStyle(color: Color(0xfff92672)), 'code' : TextStyle(color: Color(0xff66d9ef)), 'attribute' : TextStyle(color: Color(0xffbf79db)), 'symbol' : TextStyle(color: Color(0xffbf79db)), 'regexp' : TextStyle(color: Color(0xffbf79db)), 'link' : TextStyle(color: Color(0xffbf79db)), 'string' : TextStyle(color: Colors.blue), 'bullet' : TextStyle(color: Colors.blue), 'subst' : TextStyle(color: Colors.blue), 'title' : TextStyle(color: Colors.blue, fontWeight: FontWeight.bold), 'section' : TextStyle(color: Colors.blue, fontWeight: FontWeight.bold), 'emphasis' : TextStyle(color: Colors.blue), 'type' : TextStyle(color: Colors.blue, fontWeight: FontWeight.bold), 'built_in' : TextStyle(color: Colors.blue), 'builtin-name' : TextStyle(color: Color(0xffa6e22e)), 'selector-attr' : TextStyle(color: Color(0xffa6e22e)), 'selector-pseudo' : TextStyle(color: Color(0xffa6e22e)), 'addition' : TextStyle(color: Color(0xffa6e22e)), 'variable' : TextStyle(color: Colors.blue), 'template-tag' : TextStyle(color: Color(0xffa6e22e)), 'template-variable' : TextStyle(color: Color(0xffa6e22e)), 'comment' : TextStyle(color: Color(0xff75715e)), 'quote' : TextStyle(color: Color(0xff75715e)), 'deletion' : TextStyle(color: Color(0xff75715e)), 'meta' : TextStyle(color: Color(0xff75715e)), 'doctag' : TextStyle(fontWeight: FontWeight.bold), 'selector-id' : TextStyle(fontWeight: FontWeight.bold)}})
const

Properties

assetCode → String?
final
backgroundColor → Color?
final
code → String?
final
colorType → UpColorType?
final
hashCode → int
The hash code for this object.
no setterinherited
height → double
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
language → String
final
padding → EdgeInsetsGeometry
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showViewToggle → bool
final
style → UpStyle?
final
theme → Map<String, TextStyle>
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<UpCode>
Creates the mutable state for this widget at a given location in the tree.
override
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
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
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

Operators

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