PreConfig class

config class for PreWidget

Constructors

PreConfig({EdgeInsetsGeometry? padding, Decoration? decoration, EdgeInsetsGeometry? margin, TextStyle? textStyle, TextAlign? textAlign, TextDirection? textDirection, Map<String, TextStyle>? theme, String? language, int? tabSize, PreWrapper? preWrapper, bool? autoDetectionLanguage})

Properties

autoDetectionLanguage bool?
set autoDetectionLanguage true to enable language auto detection, but it will cause performance issue so it is not recommended see https://github.com/git-touch/highlight/blob/251505aae568e95ad941e023c110495fa5ad0a16/highlight/lib/src/highlight.dart#L247
final
decoration Decoration?
final
hashCode int
The hash code for this object.
no setterinherited
language String?
final
margin EdgeInsetsGeometry?
final
padding EdgeInsetsGeometry?
final
preWrapper PreWrapper?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tabSize int?
final
textAlign TextAlign?
final
textDirection TextDirection?
final
textStyle TextStyle?
final
theme Map<String, TextStyle>?
see package:flutter_highlight/themes/
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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