EditorStyle.desktop constructor

const EditorStyle.desktop({
  1. EdgeInsets? padding,
  2. Color? cursorColor,
  3. Color? selectionColor,
  4. TextStyleConfiguration? textStyleConfiguration,
  5. TextSpanDecoratorForAttribute? textSpanDecorator,
  6. String? defaultTextDirection,
  7. double cursorWidth = 2.0,
  8. double textScaleFactor = 1.0,
})

Implementation

const EditorStyle.desktop({
  EdgeInsets? padding,
  Color? cursorColor,
  Color? selectionColor,
  TextStyleConfiguration? textStyleConfiguration,
  TextSpanDecoratorForAttribute? textSpanDecorator,
  this.defaultTextDirection,
  this.cursorWidth = 2.0,
  this.textScaleFactor = 1.0,
})  : padding = padding ?? const EdgeInsets.symmetric(horizontal: 100),
      cursorColor = cursorColor ?? const Color(0xFF00BCF0),
      selectionColor =
          selectionColor ?? const Color.fromARGB(53, 111, 201, 231),
      textStyleConfiguration = textStyleConfiguration ??
          const TextStyleConfiguration(
            text: TextStyle(fontSize: 16, color: Colors.black),
          ),
      textSpanDecorator =
          textSpanDecorator ?? defaultTextSpanDecoratorForAttribute,
      magnifierSize = Size.zero,
      mobileDragHandleBallSize = Size.zero,
      mobileDragHandleWidth = 0.0,
      enableHapticFeedbackOnAndroid = false,
      dragHandleColor = Colors.transparent;