David PHAM-VAN

Remove useless const keywords

... ... @@ -29,7 +29,7 @@ pdf/roboto.ttf:
format: format-dart format-clang
format-dart: $(DART_SRC)
dartfmt -w $^
dartfmt -w --fix $^
format-clang: $(CLNG_SRC)
clang-format -style=Chromium -i $^
... ...
... ... @@ -74,7 +74,7 @@ class PdfDocument {
final DeflateCallback deflate;
/// These map the page modes just defined to the pagemodes setting of Pdf.
static const _PdfPageModes = const [
static const _PdfPageModes = [
"/UseNone",
"/UseOutlines",
"/UseThumbs",
... ...
... ... @@ -19,11 +19,11 @@
part of pdf;
class PdfPageFormat {
static const a4 = const PdfPageFormat(595.28, 841.89);
static const a3 = const PdfPageFormat(841.89, 1190.55);
static const a5 = const PdfPageFormat(420.94, 595.28);
static const letter = const PdfPageFormat(612.0, 792.0);
static const legal = const PdfPageFormat(612.0, 1008.0);
static const a4 = PdfPageFormat(595.28, 841.89);
static const a3 = PdfPageFormat(841.89, 1190.55);
static const a5 = PdfPageFormat(420.94, 595.28);
static const letter = PdfPageFormat(612.0, 792.0);
static const legal = PdfPageFormat(612.0, 1008.0);
static const point = 1.0;
static const inch = 72.0;
... ...
... ... @@ -25,7 +25,7 @@ import 'package:flutter/widgets.dart';
import 'package:pdf/pdf.dart';
class Printing {
static const MethodChannel _channel = const MethodChannel('printing');
static const MethodChannel _channel = MethodChannel('printing');
static Future<Null> printPdf({PdfDocument document, List<int> bytes}) async {
assert(document != null || bytes != null);
... ...