Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
David PHAM-VAN
2021-05-09 16:08:16 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
eb715929cdebe8d383b7e2f43f831a62918f8a1d
eb715929
1 parent
49b847f5
Add equality operator to PdfPageFormat
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletions
pdf/CHANGELOG.md
pdf/lib/src/pdf/page_format.dart
pdf/CHANGELOG.md
View file @
eb71592
...
...
@@ -6,6 +6,7 @@
-
Add TableOfContent Widget
-
Add LinearProgressIndicator
-
Add PdfOutline.toString()
-
Add equality operator to PdfPageFormat
## 3.3.0
...
...
pdf/lib/src/pdf/page_format.dart
View file @
eb71592
...
...
@@ -112,6 +112,23 @@ class PdfPageFormat {
@override
String
toString
()
{
return
'
Pag
e
${width}
x
$height
margins:
$marginLeft
,
$marginTop
,
$marginRight
,
$marginBottom
'
;
return
'
$runtimeTyp
e
${width}
x
$height
margins:
$marginLeft
,
$marginTop
,
$marginRight
,
$marginBottom
'
;
}
@override
bool
operator
==(
Object
other
)
{
if
(
other
is
!
PdfPageFormat
)
{
return
false
;
}
return
other
.
width
==
width
&&
other
.
height
==
height
&&
other
.
marginLeft
==
marginLeft
&&
other
.
marginTop
==
marginTop
&&
other
.
marginRight
==
marginRight
&&
other
.
marginBottom
==
marginBottom
;
}
@override
int
get
hashCode
=>
toString
().
hashCode
;
}
...
...
Please
register
or
login
to post a comment